Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWMI Pin
Alex_Y18-May-05 9:34
Alex_Y18-May-05 9:34 
GeneralRe: WMI Pin
David Crow18-May-05 16:41
David Crow18-May-05 16:41 
GeneralCopying a project induces compilation errors Pin
Chris Korzeniowski18-May-05 9:01
Chris Korzeniowski18-May-05 9:01 
GeneralRe: Copying a project induces compilation errors Pin
Chris Korzeniowski18-May-05 9:59
Chris Korzeniowski18-May-05 9:59 
GeneralRe: Copying a project induces compilation errors Pin
Chris Korzeniowski18-May-05 11:51
Chris Korzeniowski18-May-05 11:51 
GeneralRe: Copying a project induces compilation errors Pin
David Crow18-May-05 16:45
David Crow18-May-05 16:45 
GeneralWinocc.cpp Pin
Watertreader18-May-05 9:01
Watertreader18-May-05 9:01 
GeneralRe: Winocc.cpp Pin
Jörgen Sigvardsson18-May-05 12:36
Jörgen Sigvardsson18-May-05 12:36 
If it's MFC that ships with VS.NET 2003, then it's an assert in CWnd::InvokeHelper(). The assert comment says "Not an OLE control (not yet at least)".

Are you perhaps calling any of the control's properties/methods prematurely?


Watertreader wrote:
Another query... what is the best way to convert int to string? (std::string)

std::stringstream is quite sufficient. It works like an ordinary I/O stream, with the exception that it writes to an internal string buffer, to which you can acquire a pointer through the std::stringstream interface.

Another way, which I prefer, is to use CString::Format() which works just like good old sprintf(), but is safer from a security point of view.

There are other ways of converting an int to a string, but these are probably the two most common methods in C++ and/or MFC/ATL projects.

--
Schni Schna Schnappi! Schnappi Schnappi Schnapp!
GeneralRe: Winocc.cpp Pin
Watertreader18-May-05 16:22
Watertreader18-May-05 16:22 
GeneralRe: Winocc.cpp Pin
David Crow18-May-05 16:48
David Crow18-May-05 16:48 
GeneralRe: Winocc.cpp Pin
Jörgen Sigvardsson18-May-05 20:09
Jörgen Sigvardsson18-May-05 20:09 
GeneralRe: Winocc.cpp Pin
David Crow19-May-05 2:10
David Crow19-May-05 2:10 
GeneralRe: Winocc.cpp Pin
Jörgen Sigvardsson19-May-05 5:19
Jörgen Sigvardsson19-May-05 5:19 
GeneralRe: Winocc.cpp Pin
David Crow19-May-05 5:35
David Crow19-May-05 5:35 
GeneralRe: Winocc.cpp Pin
Watertreader22-May-05 9:28
Watertreader22-May-05 9:28 
GeneralCall Java function from C++ DLL Pin
xueshunnai18-May-05 7:31
xueshunnai18-May-05 7:31 
GeneralInvalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 7:02
Blake Miller18-May-05 7:02 
GeneralRe: Invalidating Proper 'Screen' Area Pin
David Crow18-May-05 8:22
David Crow18-May-05 8:22 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 8:29
Blake Miller18-May-05 8:29 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 8:23
professionalRavi Bhavnani18-May-05 8:23 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 8:36
Blake Miller18-May-05 8:36 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 8:45
professionalRavi Bhavnani18-May-05 8:45 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 9:32
Blake Miller18-May-05 9:32 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 10:00
professionalRavi Bhavnani18-May-05 10:00 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 11:12
Blake Miller18-May-05 11:12 

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.