Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Windows Registry

Status
Not open for further replies.

WilliamGS

Programmer
Jan 21, 2004
54
0
0
PE
Hello, I have a program that creates entries in Windows Registry ( RegCreateKeyEx(), RegOpenKeyEx(), RegSetValueEx(), etc. ) in \\HKEY_CURRENT_USER\\Software\\MyApps\\App01, it works fine but in WinXP and 2000 it disappears when I restart Windows, in Win98 all is OK. I am using VC++ 6.00.

How can I fix it?
Thanks in advance,

William GS
 
See documentation in MSDN on RegCreateKeyEx, specially the parts about the flags REG_OPTION_NON_VOLATILE and REG_OPTION_VOLATILE.



/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Is this specific to the user or specific to your software? Put it under HKEY_LOCAL_MACHINE\Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top