Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: To embed a word document into a C++ console based exe Pin
Rajkumar R20-Feb-08 18:07
Rajkumar R20-Feb-08 18:07 
GeneralRe: To embed a word document into a C++ console based exe Pin
Maxwell Chen20-Feb-08 19:05
Maxwell Chen20-Feb-08 19:05 
QuestionA problem when you press ESC in a CEdit ctrl Pin
zengkun10020-Feb-08 16:05
zengkun10020-Feb-08 16:05 
GeneralRe: A problem when you press ESC in a CEdit ctrl Pin
Maxwell Chen20-Feb-08 16:20
Maxwell Chen20-Feb-08 16:20 
GeneralRe: A problem when you press ESC in a CEdit ctrl Pin
zengkun10020-Feb-08 16:39
zengkun10020-Feb-08 16:39 
GeneralRe: A problem when you press ESC in a CEdit ctrl Pin
Maxwell Chen20-Feb-08 16:44
Maxwell Chen20-Feb-08 16:44 
QuestionHow to access Blu-ray discs' video file? Pin
kcynic20-Feb-08 14:54
kcynic20-Feb-08 14:54 
GeneralFunny symbols Reading Registry Key Values Pin
J_E_D_I20-Feb-08 10:14
J_E_D_I20-Feb-08 10:14 
I am writing a code in C++ to read out a Registry key Value. The program runs with no errors but instead of reading the value either shows nothing (in case value == 0) or shows funny face symbols Sigh | :sigh: OMG | :OMG: Poke tongue | ;-P (if value == 1 or other values). Once this value is read I would also need to assign it to a variable. Any solution would be highly appreaciated!

///// code /////
HKEY MyKey;
unsigned long type=REG_SZ, size=1024;
char res[1024]="";

RegOpenKeyEx
(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\0", 0, KEY_READ, &MyKey);

RegQueryValueEx
(MyKey, "1400\0", NULL, &type, (LPBYTE)&res[0], &size);

cout << "Ant the value is.....: " << *(LPBYTE)&res[0] << endl;
RegCloseKey (MyKey);
///////////////////
QuestionRe: Funny symbols Reading Registry Key Values Pin
David Crow20-Feb-08 10:43
David Crow20-Feb-08 10:43 
GeneralRe: Funny symbols Reading Registry Key Values Pin
Mark Salsbery20-Feb-08 13:19
Mark Salsbery20-Feb-08 13:19 
GeneralRe: Funny symbols Reading Registry Key Values Pin
Mark Salsbery20-Feb-08 13:23
Mark Salsbery20-Feb-08 13:23 
GeneralRe: Funny symbols Reading Registry Key Values Pin
J_E_D_I21-Feb-08 21:31
J_E_D_I21-Feb-08 21:31 
GeneralRe: Funny symbols Reading Registry Key Values Pin
David Crow22-Feb-08 2:54
David Crow22-Feb-08 2:54 
GeneralRe: Funny symbols Reading Registry Key Values Pin
J_E_D_I22-Feb-08 9:45
J_E_D_I22-Feb-08 9:45 
QuestionRe: Funny symbols Reading Registry Key Values Pin
David Crow22-Feb-08 9:57
David Crow22-Feb-08 9:57 
GeneralHow to Read a Registry Key Value Pin
J_E_D_I22-Feb-08 10:18
J_E_D_I22-Feb-08 10:18 
GeneralDetermine if an exe is running or not Pin
act_x20-Feb-08 10:01
act_x20-Feb-08 10:01 
GeneralRe: Determine if an exe is running or not Pin
David Crow20-Feb-08 10:44
David Crow20-Feb-08 10:44 
GeneralRe: Determine if an exe is running or not Pin
Chris Meech20-Feb-08 11:11
Chris Meech20-Feb-08 11:11 
GeneralRe: Determine if an exe is running or not [modified] Pin
User 238229221-Feb-08 3:22
User 238229221-Feb-08 3:22 
GeneralExtended MAPI in C, not C++ or C# Pin
panther8220-Feb-08 8:55
panther8220-Feb-08 8:55 
GeneralRe: Extended MAPI in C, not C++ or C# Pin
Member 75496021-Feb-08 5:37
Member 75496021-Feb-08 5:37 
GeneralRe: Extended MAPI in C, not C++ or C# Pin
Member 75496021-Feb-08 6:04
Member 75496021-Feb-08 6:04 
QuestionWhat is the SafeArrayGetElement Equalent method in Unix Pin
Jahnson K20-Feb-08 8:42
Jahnson K20-Feb-08 8:42 
AnswerRe: What is the SafeArrayGetElement Equalent method in Unix Pin
CPallini20-Feb-08 21:15
mveCPallini20-Feb-08 21:15 

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.