Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Self delete Pin
Russell'9-Aug-07 3:17
Russell'9-Aug-07 3:17 
QuestionCreate Registry Key with C++ Pin
J_E_D_I9-Aug-07 0:26
J_E_D_I9-Aug-07 0:26 
AnswerRe: Create Registry Key with C++ Pin
Ranjoy Guha9-Aug-07 0:40
Ranjoy Guha9-Aug-07 0:40 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I9-Aug-07 0:53
J_E_D_I9-Aug-07 0:53 
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 0:56
jhwurmbach9-Aug-07 0:56 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I9-Aug-07 1:13
J_E_D_I9-Aug-07 1:13 
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 1:18
jhwurmbach9-Aug-07 1:18 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I9-Aug-07 2:05
J_E_D_I9-Aug-07 2:05 
Bingo. Now it doesn't return any error anymore but it doesn't seem to visualize the value of the registry key correctly. It should be 1234 but it shows 0012FED4. Why??

HKEY temporarykey;
TCHAR License[64];
DWORD lpcbData = 64;

RegOpenKeyEx(HKEY_LOCAL_MACHINE,_T("SOFTWARE\\XXX\\License"),0,
KEY_QUERY_VALUE ,&temporarykey);

RegQueryValueEx(temporarykey,_T("License"), NULL, NULL,
(LPBYTE)License, &lpcbData);

cout << License;

RegCloseKey(temporarykey);
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 2:26
jhwurmbach9-Aug-07 2:26 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I9-Aug-07 4:01
J_E_D_I9-Aug-07 4:01 
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 5:36
jhwurmbach9-Aug-07 5:36 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I11-Aug-07 3:06
J_E_D_I11-Aug-07 3:06 
GeneralRe: Create Registry Key with C++ Pin
David Crow9-Aug-07 3:16
David Crow9-Aug-07 3:16 
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 3:35
jhwurmbach9-Aug-07 3:35 
GeneralRe: Create Registry Key with C++ Pin
Ranjoy Guha9-Aug-07 1:25
Ranjoy Guha9-Aug-07 1:25 
AnswerRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 0:54
jhwurmbach9-Aug-07 0:54 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I9-Aug-07 1:10
J_E_D_I9-Aug-07 1:10 
GeneralRe: Create Registry Key with C++ Pin
jhwurmbach9-Aug-07 1:15
jhwurmbach9-Aug-07 1:15 
GeneralRe: Create Registry Key with C++ Pin
Jim Crafton9-Aug-07 8:33
Jim Crafton9-Aug-07 8:33 
AnswerRe: Create Registry Key with C++ Pin
hxhl959-Aug-07 9:34
hxhl959-Aug-07 9:34 
GeneralRe: Create Registry Key with C++ Pin
J_E_D_I15-Aug-07 23:56
J_E_D_I15-Aug-07 23:56 
GeneralRe: Create Registry Key with C++ Pin
hxhl9516-Aug-07 14:15
hxhl9516-Aug-07 14:15 
QuestionRe: Create Registry Key with C++ Pin
J_E_D_I18-Aug-07 22:00
J_E_D_I18-Aug-07 22:00 
AnswerRe: Create Registry Key with C++ Pin
hxhl9519-Aug-07 7:16
hxhl9519-Aug-07 7:16 
QuestionRe: Create Registry Key with C++ Pin
J_E_D_I19-Aug-07 19:04
J_E_D_I19-Aug-07 19:04 

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.