Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDetecting mouse clicks outside dialog area? Pin
14-Feb-01 6:04
suss14-Feb-01 6:04 
AnswerRe: Detecting mouse clicks outside dialog area? Pin
l a u r e n14-Feb-01 6:42
l a u r e n14-Feb-01 6:42 
GeneralIPC shared memory Pin
14-Feb-01 5:22
suss14-Feb-01 5:22 
GeneralRe: IPC shared memory Pin
.::RockNix::.15-Feb-01 1:03
.::RockNix::.15-Feb-01 1:03 
GeneralResources and user defined build Pin
14-Feb-01 4:57
suss14-Feb-01 4:57 
GeneralInternationalize String Tables Pin
14-Feb-01 4:16
suss14-Feb-01 4:16 
GeneralRe: Internationalize String Tables Pin
Erik Funkenbusch14-Feb-01 13:40
Erik Funkenbusch14-Feb-01 13:40 
QuestionHow to restore registory Pin
sakurajyousui13-Feb-01 23:07
sakurajyousui13-Feb-01 23:07 
Everyone, good afternoon.
It is worried in the way of restoring Registory.

Information on Registory is kept by using RegSaveKey in the file. After that, Registory is changed, and it tries to be restored with RegReplaceKey.

The executive result of RegReplaceKey is successful.
The BackUp file made after the practice is being made, too.

But, Registory isn't being restored.

Is it improper if anything isn't done before carrying out RegReplaceKey so that it may be restored to the normality?

Example.(Save)
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_ALL_ACCESS, &hKey);
RegSaveKey(hKey, "C:\\HKLMSOFT", NULL);

(Restore)
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_ALL_ACCESS, &hKey);
RegReplaceKey(hKey, NULL, "C:\\HKLMSOFT", "C:\\HKLMSOFT.bak" );
or
RegOpenKeyEx(HKEY_LOCAL_MACHINE, NULL, 0, KEY_ALL_ACCESS, &hKey);
RegReplaceKey(hKey, "SOFTWARE", "C:\\HKLMSOFT", "C:\\HKLMSOFT.bak" );

But, it isn't restored.

Thank you for reading it.




sakurajyousui
GeneralRecordset object from VB to VC++ ocx Pin
13-Feb-01 22:27
suss13-Feb-01 22:27 
GeneralRe: Recordset object from VB to VC++ ocx Pin
l a u r e n14-Feb-01 6:56
l a u r e n14-Feb-01 6:56 
GeneralThreads & Critical Sections Pin
Gerry13-Feb-01 22:26
Gerry13-Feb-01 22:26 
GeneralRe: Threads & Critical Sections Pin
.::RockNix::.14-Feb-01 0:04
.::RockNix::.14-Feb-01 0:04 
GeneralContext menu on rightclick of Network neighborhood computer Pin
13-Feb-01 16:14
suss13-Feb-01 16:14 
GeneralMemory leak... Pin
13-Feb-01 16:11
suss13-Feb-01 16:11 
GeneralRe: Memory leak... Pin
13-Feb-01 16:54
suss13-Feb-01 16:54 
GeneralRe: Memory leak... Pin
Rui Lopes13-Feb-01 23:03
Rui Lopes13-Feb-01 23:03 
Generalrefresh, back and forward for my browser!!! Pin
Damion of Argayl13-Feb-01 11:31
Damion of Argayl13-Feb-01 11:31 
GeneralPropertySheet - Tab position on bottom Pin
David L Morris13-Feb-01 11:10
David L Morris13-Feb-01 11:10 
GeneralRe: PropertySheet - Tab position on bottom Pin
ov13-Feb-01 21:31
ov13-Feb-01 21:31 
QuestionHow to update a Dialog box Pin
Richard Cheng13-Feb-01 8:24
Richard Cheng13-Feb-01 8:24 
AnswerRe: How to update a Dialog box Pin
Christian Graus13-Feb-01 10:57
protectorChristian Graus13-Feb-01 10:57 
AnswerRe: How to update a Dialog box Pin
13-Feb-01 10:58
suss13-Feb-01 10:58 
GeneralPassing PCWSTR to a function Pin
Vickie13-Feb-01 8:23
Vickie13-Feb-01 8:23 
GeneralRe: Passing PCWSTR to a function Pin
Matt.W.13-Feb-01 23:10
Matt.W.13-Feb-01 23:10 
GeneralRe: Passing PCWSTR to a function Pin
l a u r e n14-Feb-01 6:51
l a u r e n14-Feb-01 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.