Click here to Skip to main content
15,903,627 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to convert any format to pdf using C(or)C++ Pin
Franck Paquier10-Nov-09 4:50
Franck Paquier10-Nov-09 4:50 
QuestionMFC-How to fill a polygon with bitmap Pin
chadic9-Nov-09 22:53
chadic9-Nov-09 22:53 
Questionplease guide for me convert image tiff to image bmp ??? (VC++6.0) Pin
aa_zz9-Nov-09 22:21
aa_zz9-Nov-09 22:21 
AnswerRe: please guide for me convert image tiff to image bmp ??? (VC++6.0) Pin
CPallini9-Nov-09 22:45
mveCPallini9-Nov-09 22:45 
Questiondynamic_cast fails Pin
Maxwell Chen9-Nov-09 22:13
Maxwell Chen9-Nov-09 22:13 
AnswerRe: dynamic_cast fails Pin
Randor 9-Nov-09 22:38
professional Randor 9-Nov-09 22:38 
GeneralRe: dynamic_cast fails Pin
Maxwell Chen9-Nov-09 22:40
Maxwell Chen9-Nov-09 22:40 
QuestionReading DWord From Registry Pin
Anil Kumar.Arvapalli9-Nov-09 20:14
Anil Kumar.Arvapalli9-Nov-09 20:14 
Hi,

How to read a DWord Value from Registry... Iam trying with the following code but iam getting Garbage Values... can any body help me out....


void ReadValue()
{
HKEY hKey = 0;
DWORD dw,dwValType;
LPBYTE pbData;


if(RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Praveen", 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{

if(RegQueryValueEx (hKey,"DWORDSample", NULL, NULL, NULL, &dw)==ERROR_SUCCESS)
{

pbData = (LPBYTE)malloc(dw);

RegQueryValueEx (hKey, "StringSample", NULL, &dwValType, pbData , &dw);

cout<<"\n\nDecimal Value"<<(DWORD)pbData<<"\n\n";

RegCloseKey(hKey);
}

}

}


Thanks in Advance......
AnswerRe: Reading DWord From Registry Pin
Richard MacCutchan9-Nov-09 21:04
mveRichard MacCutchan9-Nov-09 21:04 
AnswerRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 1:02
Michael Schubert10-Nov-09 1:02 
GeneralRe: Reading DWord From Registry Pin
Richard MacCutchan10-Nov-09 5:24
mveRichard MacCutchan10-Nov-09 5:24 
GeneralRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 6:15
Michael Schubert10-Nov-09 6:15 
AnswerRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 6:19
Michael Schubert10-Nov-09 6:19 
QuestionError "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 18:25
Rahul Vaishnav9-Nov-09 18:25 
AnswerRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 18:34
professional Randor 9-Nov-09 18:34 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 18:54
Rahul Vaishnav9-Nov-09 18:54 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 19:03
professional Randor 9-Nov-09 19:03 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 20:00
Rahul Vaishnav9-Nov-09 20:00 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 20:39
professional Randor 9-Nov-09 20:39 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 21:11
professional Randor 9-Nov-09 21:11 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 21:59
Rahul Vaishnav9-Nov-09 21:59 
QuestionHow to get x, y coordinates from autocad drawing? Pin
Paulraj G9-Nov-09 17:08
Paulraj G9-Nov-09 17:08 
AnswerRe: How to get x, y coordinates from autocad drawing? Pin
Game-point9-Nov-09 19:53
Game-point9-Nov-09 19:53 
GeneralRe: How to get x, y coordinates from autocad drawing? Pin
Paulraj G10-Nov-09 1:31
Paulraj G10-Nov-09 1:31 
QuestionAnnoying icon on the menu row Pin
T_N_T9-Nov-09 16:33
T_N_T9-Nov-09 16:33 

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.