Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting minimum size for a CFrameWnd Pin
David Crow26-Mar-07 5:27
David Crow26-Mar-07 5:27 
Questioncan anybody help me out with this error: Pin
ashokbngr26-Mar-07 1:56
ashokbngr26-Mar-07 1:56 
AnswerRe: can anybody help me out with this error: Pin
Christian Graus26-Mar-07 2:25
protectorChristian Graus26-Mar-07 2:25 
GeneralRe: can anybody help me out with this error: Pin
ashokbngr26-Mar-07 2:27
ashokbngr26-Mar-07 2:27 
GeneralRe: can anybody help me out with this error: Pin
David Crow26-Mar-07 2:54
David Crow26-Mar-07 2:54 
QuestionRe: can anybody help me out with this error: Pin
Mark Salsbery26-Mar-07 10:07
Mark Salsbery26-Mar-07 10:07 
AnswerRe: can anybody help me out with this error: Pin
ashokbngr26-Mar-07 17:40
ashokbngr26-Mar-07 17:40 
GeneralRe: can anybody help me out with this error: Pin
Mark Salsbery27-Mar-07 7:04
Mark Salsbery27-Mar-07 7:04 
QuestionCOleDataSource::DoDragDrop throwing assertion when drag and drop is done between applications Pin
PrabhuDev26-Mar-07 1:55
PrabhuDev26-Mar-07 1:55 
QuestionHow Copy TCHAR* Buff into CString Variable Pin
aaaan26-Mar-07 1:41
aaaan26-Mar-07 1:41 
AnswerRe: How Copy TCHAR* Buff into CString Variable Pin
prasad_som26-Mar-07 1:57
prasad_som26-Mar-07 1:57 
GeneralRe: How Copy TCHAR* Buff into CString Variable Pin
David Crow26-Mar-07 2:56
David Crow26-Mar-07 2:56 
GeneralRe: How Copy TCHAR* Buff into CString Variable Pin
aaaan6-Jul-07 2:23
aaaan6-Jul-07 2:23 
QuestionRe: How Copy TCHAR* Buff into CString Variable Pin
David Crow6-Jul-07 2:37
David Crow6-Jul-07 2:37 
AnswerRe: How Copy TCHAR* Buff into CString Variable Pin
aaaan6-Jul-07 2:58
aaaan6-Jul-07 2:58 
QuestionRe: How Copy TCHAR* Buff into CString Variable Pin
David Crow6-Jul-07 3:09
David Crow6-Jul-07 3:09 
QuestionRich Edit [modified] Pin
Shin-Ra26-Mar-07 1:25
Shin-Ra26-Mar-07 1:25 
QuestionRe: Rich Edit Pin
Shin-Ra26-Mar-07 2:56
Shin-Ra26-Mar-07 2:56 
AnswerRe: Rich Edit Pin
David Crow26-Mar-07 3:02
David Crow26-Mar-07 3:02 
GeneralRe: Rich Edit Pin
Shin-Ra26-Mar-07 3:45
Shin-Ra26-Mar-07 3:45 
QuestionRe: Rich Edit Pin
David Crow26-Mar-07 3:51
David Crow26-Mar-07 3:51 
GeneralRe: Rich Edit Pin
Mark Salsbery26-Mar-07 10:13
Mark Salsbery26-Mar-07 10:13 
Questionwhat the meaning of return value of "EnumPrinterDataEx" Pin
mo_nica88126-Mar-07 1:12
mo_nica88126-Mar-07 1:12 
AnswerRe: what the meaning of return value of "EnumPrinterDataEx" Pin
prasad_som26-Mar-07 1:19
prasad_som26-Mar-07 1:19 
AnswerRe: what the meaning of return value of "EnumPrinterDataEx" Pin
CPallini26-Mar-07 1:26
mveCPallini26-Mar-07 1:26 
You can use FormatMessage to see the description of the error, as in the following code excerpt (from MSDN)
LPVOID lpMsgBuf;
FormatMessage( 
    FORMAT_MESSAGE_ALLOCATE_BUFFER | 
    FORMAT_MESSAGE_FROM_SYSTEM | 
    FORMAT_MESSAGE_IGNORE_INSERTS,
    NULL,
    GetLastError(),
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
    (LPTSTR) &lpMsgBuf,
    0,
    NULL 
);
// Process any inserts in lpMsgBuf.
// ...
// Display the string.
MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );
// Free the buffer.
LocalFree( lpMsgBuf );


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

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.