Click here to Skip to main content
15,909,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Binary to Hex Literals Converter Pin
Joel Holdsworth1-Sep-06 4:41
Joel Holdsworth1-Sep-06 4:41 
GeneralRe: Binary to Hex Literals Converter [modified] Pin
Stephen Hewitt1-Sep-06 6:40
Stephen Hewitt1-Sep-06 6:40 
AnswerRe: Binary to Hex Literals Converter Pin
led mike1-Sep-06 5:44
led mike1-Sep-06 5:44 
AnswerRe: Binary to Hex Literals Converter Pin
Michael Dunn1-Sep-06 5:50
sitebuilderMichael Dunn1-Sep-06 5:50 
QuestionMS Office & MFC Pin
Vinicius Pontes1-Sep-06 3:11
Vinicius Pontes1-Sep-06 3:11 
AnswerRe: MS Office & MFC Pin
Cedric Moonen1-Sep-06 3:14
Cedric Moonen1-Sep-06 3:14 
AnswerRe: MS Office & MFC Pin
Waldermort1-Sep-06 4:32
Waldermort1-Sep-06 4:32 
GeneralRe: MS Office & MFC Pin
Vinicius Pontes1-Sep-06 4:35
Vinicius Pontes1-Sep-06 4:35 
GeneralRe: MS Office & MFC Pin
Cedric Moonen1-Sep-06 4:48
Cedric Moonen1-Sep-06 4:48 
AnswerRe: MS Office & MFC Pin
Hamid_RT2-Sep-06 9:33
Hamid_RT2-Sep-06 9:33 
QuestionRetrieving Regisrty Value Pin
Programm3r1-Sep-06 2:53
Programm3r1-Sep-06 2:53 
AnswerRe: Retrieving Regisrty Value Pin
Hamid_RT1-Sep-06 2:58
Hamid_RT1-Sep-06 2:58 
AnswerRe: Retrieving Regisrty Value Pin
Cedric Moonen1-Sep-06 3:04
Cedric Moonen1-Sep-06 3:04 
GeneralRe: Retrieving Regisrty Value Pin
Programm3r1-Sep-06 3:10
Programm3r1-Sep-06 3:10 
GeneralRe: Retrieving Regisrty Value Pin
Hamid_RT1-Sep-06 3:12
Hamid_RT1-Sep-06 3:12 
GeneralRe: Retrieving Regisrty Value Pin
Programm3r1-Sep-06 3:14
Programm3r1-Sep-06 3:14 
AnswerRe: Retrieving Regisrty Value Pin
prasad_som1-Sep-06 3:07
prasad_som1-Sep-06 3:07 
GeneralRe: Retrieving Regisrty Value Pin
Programm3r1-Sep-06 3:13
Programm3r1-Sep-06 3:13 
GeneralRe: Retrieving Regisrty Value Pin
prasad_som1-Sep-06 3:14
prasad_som1-Sep-06 3:14 
GeneralRe: Retrieving Regisrty Value Pin
Programm3r1-Sep-06 3:16
Programm3r1-Sep-06 3:16 
GeneralRe: Retrieving Regisrty Value Pin
Cedric Moonen1-Sep-06 3:16
Cedric Moonen1-Sep-06 3:16 
AnswerRe: Retrieving Regisrty Value Pin
Stephen Hewitt1-Sep-06 4:01
Stephen Hewitt1-Sep-06 4:01 
Try something like this (I haven't tested this):
-----

// Open the key.
HKEY hKey;
LONG res = RegOpenKeyEx(
HKEY_CURRENT_USER,
_T("Software\\My Company\\My Product"),
0,
KEY_READ,
&hKey
);
if (res==ERROR_SUCCESS)
{
// Now read a value in the key we opened.
DWORD Value; // Value to read.
DWORD Type;
res = RegQueryValueEx(
hKey,
_T("My value"),
NULL,
&Type,
reinterpret_cast<const BYTE*>(&Value),
sizeof(Value)
);
if (res==ERROR_SUCCESS)
{
if (Type==REG_DWORD)
{
// Access data in 'Value'.
}
}

// Close the key.
RegCloseKey(hKey);
}


Steve
QuestionGet Connection Requested System IP Pin
Kiran Pinjala1-Sep-06 2:42
Kiran Pinjala1-Sep-06 2:42 
AnswerRe: Get Connection Requested System IP Pin
_AnsHUMAN_ 1-Sep-06 2:46
_AnsHUMAN_ 1-Sep-06 2:46 
QuestionRe: Get Connection Requested System IP Pin
Kiran Pinjala1-Sep-06 3:01
Kiran Pinjala1-Sep-06 3:01 

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.