Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,228 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,321 people online right now. Registration is fast and FREE... Join Now!




Storage Issue

 
Reply to this topicStart new topic

Storage Issue, Storing a process or groupname, and attaching stuff to it...

dawmail333
14 Oct, 2008 - 04:22 AM
Post #1

D.I.C Head
Group Icon

Joined: 2 Jul, 2007
Posts: 50


Dream Kudos: 100
My Contributions
Well, let me start by saying that this program is an advanced kinda-level program, but this part in particular isn't that complex.

I'm just trying to work out the best method to store the following information, without having the user install something like SQL Express (which for this program would be counter productive!)

This program will sort through the current running processes, checking if any processes are listed in the program. If a match is found, the commands attached are executed (starting or stopping processes). Also, a process may just be designated as part of a group, so executing the group's commands instead (say if you have a number of full-screen games installed, and you want MSN Messenger to close whenever you open one of them, you assign all of them to a group named 'Game', and make the 'Game' group when executed close MSN Messenger).

What is the best method of storing that, without requiring extra software installed? It needs to be easy to modify through code, I don't care if they can modify it by hand.

The options I've been tossing up are XML Serialization (which I believe could get messy as I'd use ArrayList kinda things), or simply binary serialization. Is there a better option?

Thanks in advance.
User is offlineProfile CardPM
+Quote Post

magicmonkey
RE: Storage Issue
14 Oct, 2008 - 07:12 AM
Post #2

D.I.C Regular
***

Joined: 12 Sep, 2008
Posts: 413



Thanked: 68 times
My Contributions
I would serialize classes myself. Simple and fast, and with LINQ there are lots of advantages to using collections/classes over arraylists.
User is offlineProfile CardPM
+Quote Post

dawmail333
RE: Storage Issue
14 Oct, 2008 - 11:01 PM
Post #3

D.I.C Head
Group Icon

Joined: 2 Jul, 2007
Posts: 50


Dream Kudos: 100
My Contributions
QUOTE(magicmonkey @ 14 Oct, 2008 - 08:12 AM) *

I would serialize classes myself. Simple and fast, and with LINQ there are lots of advantages to using collections/classes over arraylists.


Thanks for the advice, but I must confess I don't know how to apply LINQ in that situation. What do you mean?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:07AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month