![]() |
|
#1
|
|||
|
|||
newbie problem with RegSetValueExhello, im trying to alter this piece of code so i can add it to my program,
the code works, the "aplication" is added to the registry and boot, but the problem is that the path in the reg. entry goes to the curent directory of where the exe is in. i understand that this is cuz of the char *szBuf; but even though i have searched google for a long time i dont understand how i can change this, what i want to do is just add a path to my program ex: c:\program files\my program (excuse me for not using // coments, since i dont understand the whole code im not cabable of doing this) help very much apreciated.. CPP / C++ / C Code:
Last edited by dsmith : 16-Jul-2004 at 15:49.
Reason: Please use [c] & [/c] for syntax highlighting
|
|||
|
#2
|
||||
|
||||
|
No guarantees, because I don't like messing with the registry, but why not try something like:
CPP / C++ / C Code:
Like I said, don't hold me responsible for any of your pets dying from running the above code. ![]() __________________
The best damn Sports Blog period. |
|
#3
|
|||
|
|||
|
:-P thanx a lot it worked .. !
gues the pets will be getting trough the day afterall ![]() |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| newbie with pointer problems. | moltarim | C Programming Language | 1 | 14-May-2004 10:46 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 08:53 |
| Newbie Problem with cin | trs2988 | C++ Forum | 4 | 08-Feb-2004 13:05 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 10:11 |
| Code problem (a newbie question) | monkster87 | C++ Forum | 3 | 11-Aug-2003 13:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The