Click here to Skip to main content
16,014,677 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: load a file when startup Pin
GooGoo25-Dec-02 13:08
GooGoo25-Dec-02 13:08 
QuestionCan a thread die abnormally? Pin
Todd Smith24-Dec-02 7:52
Todd Smith24-Dec-02 7:52 
AnswerRe: Can a thread die abnormally? Pin
Paul Belikian24-Dec-02 11:04
Paul Belikian24-Dec-02 11:04 
AnswerRe: Can a thread die abnormally? Pin
Michael Dunn24-Dec-02 18:27
sitebuilderMichael Dunn24-Dec-02 18:27 
GeneralRe: Can a thread die abnormally? Pin
Todd Smith26-Dec-02 6:38
Todd Smith26-Dec-02 6:38 
GeneralRe: Can a thread die abnormally? Pin
Michael Dunn26-Dec-02 7:06
sitebuilderMichael Dunn26-Dec-02 7:06 
GeneralRe: Can a thread die abnormally? Pin
Mike Nordell26-Dec-02 7:10
Mike Nordell26-Dec-02 7:10 
GeneralON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Moak24-Dec-02 7:35
Moak24-Dec-02 7:35 
Hi,
I have two different questions:

1.) Does a message handler for ON_MESSAGE() need to be defined as afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam); or as afx_msg void OnMyMessage(WPARAM wParam, LPARAM lParam); ?
I am confused, because I (accidently) used the "void" version and never got any compiler or runtime error in the past.

2.) What is IMPLEMENT_DYNAMIC() macro used for? Well, take my appology that I don't know MFC very well and from MSDN I don't get any newbie description what is it for. For me even more intersting: when would I need to use this macro and what does it give me?

Thanks and hohoho, Moak

PS: If you wonder how both question are related... they are not. I'm currently playing with multiple inheritance and MFC. I derived a dialog from CDialog + a (non-CObject) class and got strange compiler errors.
GeneralRe: ON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Chris Richardson24-Dec-02 7:53
Chris Richardson24-Dec-02 7:53 
GeneralRe: ON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Moak24-Dec-02 20:59
Moak24-Dec-02 20:59 
Generalfloatbar over cdialog Pin
Member 569669724-Dec-02 6:33
Member 569669724-Dec-02 6:33 
GeneralRe: floatbar over cdialog Pin
l a u r e n24-Dec-02 6:38
l a u r e n24-Dec-02 6:38 
GeneralRe: floatbar over cdialog Pin
Member 569669724-Dec-02 6:56
Member 569669724-Dec-02 6:56 
GeneralDisk S/N and creating directories Pin
RalfPeter24-Dec-02 6:20
RalfPeter24-Dec-02 6:20 
GeneralRe: Disk S/N and creating directories Pin
Nish Nishant24-Dec-02 6:29
sitebuilderNish Nishant24-Dec-02 6:29 
GeneralRe: Disk S/N and creating directories Pin
Chris Meech24-Dec-02 6:57
Chris Meech24-Dec-02 6:57 
GeneralRe: Disk S/N and creating directories Pin
Mike Nordell26-Dec-02 7:13
Mike Nordell26-Dec-02 7:13 
GeneralDevice Driver Pin
Mazdak24-Dec-02 5:27
Mazdak24-Dec-02 5:27 
GeneralRe: Device Driver Pin
l a u r e n24-Dec-02 5:30
l a u r e n24-Dec-02 5:30 
GeneralRe: Device Driver Pin
Mazdak24-Dec-02 6:33
Mazdak24-Dec-02 6:33 
GeneralRe: Device Driver Pin
l a u r e n24-Dec-02 6:35
l a u r e n24-Dec-02 6:35 
GeneralRe: Device Driver Pin
Mazdak24-Dec-02 7:07
Mazdak24-Dec-02 7:07 
GeneralRe: Device Driver Pin
Nish Nishant24-Dec-02 6:32
sitebuilderNish Nishant24-Dec-02 6:32 
GeneralPig Latin Program Pin
liboogie1924-Dec-02 4:45
liboogie1924-Dec-02 4:45 
GeneralRe: Pig Latin Program Pin
Todd C. Wilson24-Dec-02 7:02
Todd C. Wilson24-Dec-02 7:02 

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.