Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.

GeneralRe: what the meaning of return value of "EnumPrinterDataEx" Pin
mo_nica88126-Mar-07 2:38
mo_nica88126-Mar-07 2:38 
QuestionCombo box in CListCtrl Pin
Aryan S26-Mar-07 0:52
Aryan S26-Mar-07 0:52 
AnswerRe: Combo box in CListCtrl Pin
prasad_som26-Mar-07 1:31
prasad_som26-Mar-07 1:31 
AnswerRe: Combo box in CListCtrl Pin
Nibu babu thomas26-Mar-07 1:32
Nibu babu thomas26-Mar-07 1:32 
QuestionI removed default hover behavior in my toolbar. Can I get it back? Pin
maxmaven25-Mar-07 23:43
maxmaven25-Mar-07 23:43 
AnswerRe: I removed default hover behavior in my toolbar. Can I get it back? Pin
Nibu babu thomas26-Mar-07 0:23
Nibu babu thomas26-Mar-07 0:23 
GeneralRe: I removed default hover behavior in my toolbar. Can I get it back? Pin
maxmaven26-Mar-07 1:41
maxmaven26-Mar-07 1:41 
GeneralRe: I removed default hover behavior in my toolbar. Can I get it back? Pin
maxmaven26-Mar-07 2:00
maxmaven26-Mar-07 2:00 
GeneralThanks, I will learn from a book I have Pin
maxmaven26-Mar-07 2:04
maxmaven26-Mar-07 2:04 
QuestionRedraw Controls Pin
baerten25-Mar-07 23:11
baerten25-Mar-07 23:11 
QuestionHow to connect to SQL Server with MFC? Pin
jerome_data25-Mar-07 22:44
jerome_data25-Mar-07 22:44 
AnswerRe: How to connect to SQL Server with MFC? Pin
Eytukan25-Mar-07 23:12
Eytukan25-Mar-07 23:12 
QuestionRe: How to connect to SQL Server with MFC? Pin
David Crow26-Mar-07 3:05
David Crow26-Mar-07 3:05 
QuestionHow to call a c++ function with pointer parameters in VB? Pin
eat_union25-Mar-07 22:21
eat_union25-Mar-07 22:21 
Questionfinding different data types used inside if() Pin
rp_suman25-Mar-07 22:05
rp_suman25-Mar-07 22:05 
AnswerRe: finding different data types used inside if() Pin
San246826-Mar-07 4:35
San246826-Mar-07 4:35 
GeneralRe: finding different data types used inside if() Pin
rp_suman26-Mar-07 14:06
rp_suman26-Mar-07 14:06 

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.