Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to show a bitmap in a CStatic control? Pin
Rajkumar R18-Mar-08 19:25
Rajkumar R18-Mar-08 19:25 
GeneralGetting the value when u point to a particular position Pin
Chandrasekharan P18-Mar-08 16:43
Chandrasekharan P18-Mar-08 16:43 
GeneralRe: Getting the value when u point to a particular position Pin
Steve Echols18-Mar-08 19:30
Steve Echols18-Mar-08 19:30 
GeneralRe: Getting the value when u point to a particular position Pin
ThatsAlok18-Mar-08 19:56
ThatsAlok18-Mar-08 19:56 
Questioncan DirectSound and DirectShow work at the same time? Pin
mwolf12218-Mar-08 15:57
mwolf12218-Mar-08 15:57 
AnswerRe: can DirectSound and DirectShow work at the same time? Pin
Mark Salsbery18-Mar-08 16:28
Mark Salsbery18-Mar-08 16:28 
GeneralOpaque COleClientItem Pin
Kyudos18-Mar-08 13:30
Kyudos18-Mar-08 13:30 
GeneralConverting int to string Pin
J_E_D_I18-Mar-08 9:19
J_E_D_I18-Mar-08 9:19 
I have two questions. The first one is regarding the conversion from int to string. I can successfully convert a numeric string to int with the follwing code (particularly useful if you need to make mathematical operations on the numeric values contained in a string):

string VALUE_AS_STRING = "1234";
int VALUE_AS_INT = atof (VALUE_AS_STRING.c_str());
cout << "The numeric value of the string is: " << VALUE_AS_INT;

...but I am not able to do the opposite, eg convert an int into a string. Any help please?


Second question :
How come the condition below results in an error? How should it rather be written?

char CHARACTER = "1";
if (CHARACTER == "1") {cout << "True";}

Many thanks
GeneralRe: Converting int to string Pin
Maxwell Chen18-Mar-08 9:27
Maxwell Chen18-Mar-08 9:27 
GeneralRe: Converting int to string Pin
Mark Salsbery18-Mar-08 9:41
Mark Salsbery18-Mar-08 9:41 
GeneralRe: Converting int to string Pin
Joe Woodbury18-Mar-08 15:57
professionalJoe Woodbury18-Mar-08 15:57 
GeneralRe: Converting int to string Pin
ThatsAlok18-Mar-08 19:59
ThatsAlok18-Mar-08 19:59 
QuestionIs it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 8:54
ChemmieBro18-Mar-08 8:54 
AnswerRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 9:04
Mark Salsbery18-Mar-08 9:04 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:20
ChemmieBro18-Mar-08 9:20 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 9:24
Mark Salsbery18-Mar-08 9:24 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:36
ChemmieBro18-Mar-08 9:36 
AnswerRe: Is it okay to cast from int to unsigned char *? Pin
David Crow18-Mar-08 9:33
David Crow18-Mar-08 9:33 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Maxwell Chen18-Mar-08 9:36
Maxwell Chen18-Mar-08 9:36 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:38
ChemmieBro18-Mar-08 9:38 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Maxwell Chen18-Mar-08 9:49
Maxwell Chen18-Mar-08 9:49 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 10:21
Mark Salsbery18-Mar-08 10:21 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ramana.g18-Mar-08 17:30
ramana.g18-Mar-08 17:30 
QuestionAutomation Server Questions Pin
garyflet18-Mar-08 8:53
garyflet18-Mar-08 8:53 
QuestionHow to read Swedish word correctly Pin
njhy18-Mar-08 7:54
njhy18-Mar-08 7:54 

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.