Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inlining problem Pin
hint_5414-Feb-06 6:36
hint_5414-Feb-06 6:36 
AnswerRe: inlining problem Pin
James R. Twine14-Feb-06 6:36
James R. Twine14-Feb-06 6:36 
GeneralRe: inlining problem Pin
hint_5414-Feb-06 6:38
hint_5414-Feb-06 6:38 
QuestionRe: inlining problem Pin
James R. Twine14-Feb-06 6:40
James R. Twine14-Feb-06 6:40 
AnswerRe: inlining problem Pin
hint_5414-Feb-06 6:46
hint_5414-Feb-06 6:46 
GeneralRe: inlining problem Pin
James R. Twine14-Feb-06 7:02
James R. Twine14-Feb-06 7:02 
GeneralRe: inlining problem Pin
hint_5414-Feb-06 7:04
hint_5414-Feb-06 7:04 
AnswerRe: inlining problem Pin
David Crow14-Feb-06 6:58
David Crow14-Feb-06 6:58 
GeneralRe: inlining problem Pin
hint_5414-Feb-06 6:58
hint_5414-Feb-06 6:58 
QuestionGood Book for "advanced beginners" C++ Pin
ldsdbomber14-Feb-06 5:57
ldsdbomber14-Feb-06 5:57 
QuestionRe: Good Book for "advanced beginners" C++ Pin
David Crow14-Feb-06 6:48
David Crow14-Feb-06 6:48 
GeneralRe: Good Book for "advanced beginners" C++ Pin
Ed K14-Feb-06 7:05
Ed K14-Feb-06 7:05 
GeneralRe: Good Book for "advanced beginners" C++ Pin
David Crow14-Feb-06 7:10
David Crow14-Feb-06 7:10 
GeneralRe: Good Book for "advanced beginners" C++ Pin
ldsdbomber15-Feb-06 6:16
ldsdbomber15-Feb-06 6:16 
GeneralRe: Good Book for "advanced beginners" C++ Pin
David Crow15-Feb-06 8:41
David Crow15-Feb-06 8:41 
QuestionLNK 4089 error with SHELL32.dll /OPT:REF Pin
ldsdbomber14-Feb-06 5:48
ldsdbomber14-Feb-06 5:48 
AnswerRe: LNK 4089 error with SHELL32.dll /OPT:REF Pin
James R. Twine14-Feb-06 6:16
James R. Twine14-Feb-06 6:16 
GeneralRe: LNK 4089 error with SHELL32.dll /OPT:REF Pin
PJ Arends14-Feb-06 17:12
professionalPJ Arends14-Feb-06 17:12 
GeneralRe: LNK 4089 error with SHELL32.dll /OPT:REF Pin
ldsdbomber15-Feb-06 6:13
ldsdbomber15-Feb-06 6:13 
GeneralRe: LNK 4089 error with SHELL32.dll /OPT:REF Pin
James R. Twine15-Feb-06 6:54
James R. Twine15-Feb-06 6:54 
GeneralRe: LNK 4089 error with SHELL32.dll /OPT:REF Pin
ldsdbomber15-Feb-06 6:59
ldsdbomber15-Feb-06 6:59 
QuestionCString::FormatMessage STL equivalent ? Pin
Maximilien14-Feb-06 4:54
Maximilien14-Feb-06 4:54 
AnswerRe: CString::FormatMessage STL equivalent ? Pin
Nitron14-Feb-06 5:10
Nitron14-Feb-06 5:10 
AnswerRe: CString::FormatMessage STL equivalent ? Pin
James R. Twine14-Feb-06 6:14
James R. Twine14-Feb-06 6:14 
   CString/CStringT::FormatMessage(...) wraps the standard FormatMessage(...) function.

   This function uses a writable character buffer to format the string into.  I do not know of a "proper" way to get writable access to the internal buffer in a basic_string object (data() returns a const pointer to the data).

   I would suggest that you allocate a temporary buffer, format into it, and then assign the contents of that buffer to the STL string:

     TCHAR   caBuffer[ 1024 + 1 ];<br />
 <br />
     ::FormatMessage( ... caBuffer ... );<br />
     caBuffer[ 1024 ] = _T( '\0' );<br />
     ssYourSTLString = caBuffer;


   Peace!


-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: CString::FormatMessage STL equivalent ? Pin
Maximilien14-Feb-06 6:55
Maximilien14-Feb-06 6:55 

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.