Click here to Skip to main content
15,885,936 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: CString::FormatMessage STL equivalent ? Pin
James R. Twine14-Feb-06 7:06
James R. Twine14-Feb-06 7:06 
GeneralRe: CString::FormatMessage STL equivalent ? Pin
Maximilien14-Feb-06 10:26
Maximilien14-Feb-06 10:26 
AnswerRe: CString::FormatMessage STL equivalent ? Pin
PJ Arends14-Feb-06 9:22
professionalPJ Arends14-Feb-06 9:22 
AnswerRe: CString::FormatMessage STL equivalent ? Pin
Anthony_Yio14-Feb-06 15:47
Anthony_Yio14-Feb-06 15:47 
QuestionDelete Directory and its child files and folders from a specified location Pin
zahid_ash14-Feb-06 4:14
zahid_ash14-Feb-06 4:14 
AnswerRe: Delete Directory and its child files and folders from a specified location Pin
David Crow14-Feb-06 4:20
David Crow14-Feb-06 4:20 
GeneralRe: Delete Directory and its child files and folders from a specified location Pin
zahid_ash14-Feb-06 4:40
zahid_ash14-Feb-06 4:40 
GeneralRe: Delete Directory and its child files and folders from a specified location Pin
David Crow14-Feb-06 4:55
David Crow14-Feb-06 4:55 
GeneralRe: Delete Directory and its child files and folders from a specified location Pin
Michael Dunn14-Feb-06 7:34
sitebuilderMichael Dunn14-Feb-06 7:34 
AnswerRe: Delete Directory and its child files and folders from a specified location Pin
Blake Miller14-Feb-06 4:24
Blake Miller14-Feb-06 4:24 
Questionwavetotext Pin
kiranvcpp14-Feb-06 4:14
kiranvcpp14-Feb-06 4:14 
AnswerRe: wavetotext Pin
toxcct14-Feb-06 4:17
toxcct14-Feb-06 4:17 
GeneralRe: wavetotext Pin
Eytukan14-Feb-06 4:59
Eytukan14-Feb-06 4:59 
QuestionUpdating DB table with CRecordset class Pin
zinc_z14-Feb-06 4:04
zinc_z14-Feb-06 4:04 
QuestionRe: Updating DB table with CRecordset class Pin
David Crow14-Feb-06 4:22
David Crow14-Feb-06 4:22 
AnswerRe: Updating DB table with CRecordset class Pin
zinc_z15-Feb-06 3:21
zinc_z15-Feb-06 3:21 

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.