Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 10th, 2004, 12:06 AM   #1
cl0ckw0rk_ninj4
Newbie
 
Join Date: Dec 2004
Posts: 8
Rep Power: 0 cl0ckw0rk_ninj4 is on a distinguished road
what is the code to make a vb app wirte itself to the registry?
cl0ckw0rk_ninj4 is offline   Reply With Quote
Old Dec 10th, 2004, 12:30 AM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Im not sure i know exactly what you are asking, then again im on drugs... you want a program to write itself into registry? Why? Better yet, just tell me what you hope to accomplish...
__________________

tempest is offline   Reply With Quote
Old Dec 10th, 2004, 2:05 AM   #3
cl0ckw0rk_ninj4
Newbie
 
Join Date: Dec 2004
Posts: 8
Rep Power: 0 cl0ckw0rk_ninj4 is on a distinguished road
i want to know how to make a programm add itself to registry to run at startup
cl0ckw0rk_ninj4 is offline   Reply With Quote
Old Dec 10th, 2004, 3:01 AM   #4
Crumbs
Newbie
 
Join Date: Dec 2004
Posts: 2
Rep Power: 0 Crumbs is on a distinguished road
No problem. The easiest way is just downloading a Class Module which will control the registry. Then you just have to add a value to the startup key in the registry, holding the place of your app. Download the Class Module from here:

http://www.vbaccelerator.com/home/VB/Code/...rol/article.asp

And check out the syntax for anything. For instance, in your cause, I'd do this:

Dim c as New cRegistry
With C
.ClassKey = HKEY_LOCAL_MACHINE
.Sectionley = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
.ValueKey = "The name of your app to be"
.ValueType = REG_SZ
.Value = "(c:\windows....\yourapp.exe"
End With
Crumbs is offline   Reply With Quote
Old Dec 10th, 2004, 7:18 PM   #5
cl0ckw0rk_ninj4
Newbie
 
Join Date: Dec 2004
Posts: 8
Rep Power: 0 cl0ckw0rk_ninj4 is on a distinguished road
so when i have the class do i add it to my project then put that code in my forms general declarations or what?
cl0ckw0rk_ninj4 is offline   Reply With Quote
Old Dec 10th, 2004, 8:19 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I've got a set of functions that are pretty easy to use:
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC