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

C / C++ / MFC

 
QuestionRe: FreeLibrary problem Pin
CPallini31-Jul-08 22:08
mveCPallini31-Jul-08 22:08 
AnswerRe: FreeLibrary problem Pin
Rahul Vaishnav31-Jul-08 23:02
Rahul Vaishnav31-Jul-08 23:02 
GeneralRe: FreeLibrary problem Pin
CPallini31-Jul-08 23:08
mveCPallini31-Jul-08 23:08 
GeneralRe: FreeLibrary problem Pin
Rahul Vaishnav1-Aug-08 0:17
Rahul Vaishnav1-Aug-08 0:17 
QuestionRe: FreeLibrary problem Pin
David Crow1-Aug-08 3:35
David Crow1-Aug-08 3:35 
AnswerRe: FreeLibrary problem caused by different heaps of the dll and exe Pin
Hartwin Stuewe10-Aug-08 2:49
Hartwin Stuewe10-Aug-08 2:49 
GeneralRe: FreeLibrary problem caused by different heaps of the dll and exe Pin
Rahul Vaishnav24-Aug-08 18:14
Rahul Vaishnav24-Aug-08 18:14 
QuestionError specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon Pin
fantasy121531-Jul-08 20:15
fantasy121531-Jul-08 20:15 
In the MSDN, it says below:
lpszIcon
Identifies an icon resource. This parameter can be either a null-terminated string or an integer resource identifier passed to the MAKEINTRESOURCE macro.
To load one of the standard system-defined icons, set the hInstance member to NULL and set lpszIcon to one of the values listed with the LoadIcon function.

This member is ignored if the dwStyle member does not specify the MB_USERICON flag.


        MSGBOXPARAMS msgparam = {0};
	msgparam.cbSize = sizeof(MSGBOXPARAMS);
	msgparam.hwndOwner = NULL;
	msgparam.lpszText = _T("text");
	msgparam.lpszCaption = _T("caption");
	msgparam.dwStyle = MB_USERICON | MB_OK;
	msgparam.hInstance = NULL;
	msgparam.lpszIcon = ::LoadIcon(NULL, IDI_WINLOGO); <font color="blue">I want to use as the MSDN says.Actually I know it will compile error.</font>
	::MessageBoxIndirect(&msgparam);
<pre> 

AnswerRe: Error specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon Pin
Cedric Moonen31-Jul-08 20:43
Cedric Moonen31-Jul-08 20:43 
GeneralRe: Error specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon Pin
fantasy121531-Jul-08 21:23
fantasy121531-Jul-08 21:23 
AnswerRe: Error specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon [modified] Pin
CPallini31-Jul-08 21:20
mveCPallini31-Jul-08 21:20 
AnswerRe: Error specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon Pin
Xing Chen31-Jul-08 21:33
Xing Chen31-Jul-08 21:33 
QuestionCreating a toolbar in a console application Pin
FloatingMarc31-Jul-08 20:00
FloatingMarc31-Jul-08 20:00 
AnswerRe: Creating a toolbar in a console application Pin
Mark Salsbery1-Aug-08 8:29
Mark Salsbery1-Aug-08 8:29 
QuestionTrack the amount of data transferred while I am on net, both sent and recieved. Pin
vicky0000031-Jul-08 19:12
vicky0000031-Jul-08 19:12 
AnswerRe: Track the amount of data transferred while I am on net, both sent and recieved. Pin
Haroon Sarwar31-Jul-08 19:26
Haroon Sarwar31-Jul-08 19:26 
QuestionRe: Track the amount of data transferred while I am on net, both sent and recieved. Pin
David Crow1-Aug-08 3:26
David Crow1-Aug-08 3:26 
Questionsave excel file Pin
gentleguy31-Jul-08 18:06
gentleguy31-Jul-08 18:06 
AnswerRe: save excel file Pin
emimmortal31-Jul-08 18:20
emimmortal31-Jul-08 18:20 
AnswerRe: save excel file Pin
FloatingMarc31-Jul-08 20:18
FloatingMarc31-Jul-08 20:18 
QuestionWhen click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
fantasy121531-Jul-08 16:03
fantasy121531-Jul-08 16:03 
AnswerRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
Mark Salsbery31-Jul-08 16:23
Mark Salsbery31-Jul-08 16:23 
GeneralRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
fantasy121531-Jul-08 17:09
fantasy121531-Jul-08 17:09 
GeneralRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
Mark Salsbery1-Aug-08 5:31
Mark Salsbery1-Aug-08 5:31 
Question#define statements Pin
MarkB77731-Jul-08 15:55
MarkB77731-Jul-08 15: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.