Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delphi VS vc++,which one? Pin
señor codeman6-Jun-02 1:50
señor codeman6-Jun-02 1:50 
AnswerRe: delphi VS vc++,which one? Pin
tiaozi31-May-02 17:50
tiaozi31-May-02 17:50 
GeneralMinimal COM example Pin
slah31-May-02 3:01
slah31-May-02 3:01 
GeneralGetDlgItem crashes Pin
mikeh31-May-02 2:47
mikeh31-May-02 2:47 
GeneralRe: GetDlgItem crashes Pin
31-May-02 4:50
suss31-May-02 4:50 
GeneralRe: GetDlgItem crashes Pin
mikeh31-May-02 5:00
mikeh31-May-02 5:00 
GeneralRe: GetDlgItem crashes Pin
31-May-02 5:35
suss31-May-02 5:35 
GeneralRe: GetDlgItem crashes Pin
mikeh31-May-02 7:47
mikeh31-May-02 7:47 
Thanks to Mike Collins, this problem has been solved. Here is the resolution:

My code uses many user message handlers. I typically use the ON_MESSAGE() macro with a function handler. When defining the function handler, I often code a prototype function like the following:

void OnUserHandler();

However, this is incorrect. Eventhough this code will compile (with no warnings!) and work fine in debug, it will fail in release mode. The resolution is to change the function handlers to the following:

afx_msg LRESULT memberFxn(WPARAM, LPARAM);

Hope this helps all who run across this in the future!


GeneralRe: GetDlgItem crashes Pin
James R. Twine31-May-02 10:33
James R. Twine31-May-02 10:33 
GeneralProblem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 2:01
Munkijo31-May-02 2:01 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Mazdak31-May-02 2:34
Mazdak31-May-02 2:34 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 7:27
Munkijo31-May-02 7:27 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 7:33
Munkijo31-May-02 7:33 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Bill Wilson31-May-02 14:22
Bill Wilson31-May-02 14:22 
GeneralTo Release or Not to Release... Pin
Braulio Dez31-May-02 0:59
Braulio Dez31-May-02 0:59 
GeneralRe: To Release or Not to Release... Pin
Tomasz Sowinski31-May-02 1:21
Tomasz Sowinski31-May-02 1:21 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 1:21
Len Holgate31-May-02 1:21 
GeneralRe: To Release or Not to Release... Pin
Tomasz Sowinski31-May-02 2:29
Tomasz Sowinski31-May-02 2:29 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 2:28
Len Holgate31-May-02 2:28 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 1:16
Len Holgate31-May-02 1:16 
GeneralRe: To Release or Not to Release... Pin
Mauricio Ritter31-May-02 1:35
Mauricio Ritter31-May-02 1:35 
Generala question of edit control Pin
31-May-02 0:55
suss31-May-02 0:55 
GeneralRe: a question of edit control Pin
User 665831-May-02 4:45
User 665831-May-02 4:45 
GeneralRe: a question of edit control Pin
ilavl31-May-02 17:07
ilavl31-May-02 17:07 
GeneralRe: a question of edit control Pin
valikac31-May-02 5:15
valikac31-May-02 5:15 

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.