Click here to Skip to main content
15,947,476 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
J_E_D_I wrote:
but I am not able to do the opposite, eg convert an int into a string. Any help please?


Another method in addition to Maxwell's sprintf()...

#include <sstream>
...
int SomeInt = 5;

std::ostringstream NumericStringStream;

NumericStringStream << SomeInt;

std::string NumericString = NumericStringStream.str();


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
QuestionRe: How to read Swedish word correctly Pin
Maxwell Chen18-Mar-08 8:37
Maxwell Chen18-Mar-08 8:37 
GeneralRe: How to read Swedish word correctly Pin
njhy18-Mar-08 8:42
njhy18-Mar-08 8:42 

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.