forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Use of Registry to pass parameters

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DavidR
Contributor
Contributor


Joined: 05 Aug 2003
Posts: 83
Location: Bethel Pennsylvania U.S.A.

PostPosted: Wed Apr 30, 2008 1:00 pm    Post subject: Use of Registry to pass parameters Reply with quote

I'm curious about the ramifications of using the registry to pass parameters between dissimilar pieces of software that don't have any "common" means of handshaking.
Many times I've worked with VDS programs that deal with data that I need to send to or receive from other applications (even other VDS programs).
My common practice has been to use files.
Example:
Program A writes a data file.
Program B periodically checks for the presence of the data file, reads and deletes it.
Program A detects that the data file has been deleted and creates a new one with current data etc.. etc.. etc.....

When dealing with 2 programs that are able to read/write the registry the same data could be passed in a similar manner. It would seem to be somewhat cleaner and invisible to the end user but I'd like to know if there are any "gotchas" that I've not considered.
Like - Performance issues, risk of inadvertantly corrupting the registry, interferring with other programs using the registry, etc...

Just asking the experts... Is this a good idea or not?

Thanks.........
..................David
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Wed Apr 30, 2008 4:13 pm    Post subject: Reply with quote

Seems fine to use actually, just make sure to use HKEY_CURRENT_USER and not the local machine root if you want the app to run on vista without having to require admin privileges/uac prompt on the app.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group