Click here to Skip to main content
15,908,274 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
Albert Holguin20-Jun-11 13:51
professionalAlbert Holguin20-Jun-11 13:51 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
Shivanand Gupta30-Aug-11 1:44
Shivanand Gupta30-Aug-11 1:44 
QuestionIssue about MSAA hook in Win7 64 bits Pin
ernst2002053023-May-11 4:15
ernst2002053023-May-11 4:15 
QuestionTrapping Windows Media Player (aka WPM) "Exit" Event Pin
MRCres20-May-11 3:38
MRCres20-May-11 3:38 
QuestionError C2440: 'static_cast' cannot convert from __thiscall Pin
Member 458174116-May-11 8:43
Member 458174116-May-11 8:43 
AnswerRe: Error C2440: 'static_cast' cannot convert from __thiscall Pin
Richard MacCutchan16-May-11 12:44
mveRichard MacCutchan16-May-11 12:44 
AnswerRe: Error C2440: 'static_cast' cannot convert from __thiscall Pin
Jinhuang Dai2-Jun-11 14:55
Jinhuang Dai2-Jun-11 14:55 
AnswerRe: Error C2440: 'static_cast' cannot convert from __thiscall Pin
Albert Holguin20-Jun-11 14:03
professionalAlbert Holguin20-Jun-11 14:03 
Studio has gotten a lot more picky about this (and they should've been all along) but essentially what the error is telling you.

You defined a message catching method as:
afx_msg void OnChatAddSize(LPARAM lParam, WPARAM wParam);
//this is the 'void (__thiscall CChatView::* )(WPARAM,LPARAM)' portion of the error

but it expected (for ON_MESSAGE()) a method call that would look like this:
afx_msg LRESULT OnChatAddSize(WPARAM wParam, LPARAM lParam)
//this is the 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' portion of the error

So you essentially have to have the parameters be of the same type and order (WPARAM, LPARAM) and have return of type LRESULT and you'll make the compiler happy.
QuestionDisplaying UTF8 text through mfc application Pin
kishore14612-May-11 20:00
kishore14612-May-11 20:00 
AnswerRe: Displaying UTF8 text through mfc application Pin
Richard MacCutchan12-May-11 22:00
mveRichard MacCutchan12-May-11 22:00 
QuestionPlugIn crashes, but App keeps running - Solution needed Pin
virtualnik10-May-11 3:28
virtualnik10-May-11 3:28 
AnswerRe: PlugIn crashes, but App keeps running - Solution needed Pin
barneyman10-May-11 3:42
barneyman10-May-11 3:42 
GeneralRe: PlugIn crashes, but App keeps running - Solution needed Pin
virtualnik10-May-11 3:49
virtualnik10-May-11 3:49 
GeneralRe: PlugIn crashes, but App keeps running - Solution needed Pin
barneyman10-May-11 3:58
barneyman10-May-11 3:58 
AnswerRe: PlugIn crashes, but App keeps running - Solution needed Pin
Stephen Hewitt11-May-11 6:04
Stephen Hewitt11-May-11 6:04 
QuestionATL alternate to .NET profiling Pin
popchecker6-May-11 18:35
popchecker6-May-11 18:35 
AnswerRe: ATL alternate to .NET profiling Pin
barneyman8-May-11 23:30
barneyman8-May-11 23:30 
QuestionBest CWnd for Keyboard and Mouse Input Pin
Koolski5-May-11 7:21
Koolski5-May-11 7:21 
AnswerRe: Best CWnd for Keyboard and Mouse Input Pin
Richard MacCutchan5-May-11 21:25
mveRichard MacCutchan5-May-11 21:25 
QuestionSTL list wrapped inside managed class Pin
Flo Lee5-May-11 4:14
Flo Lee5-May-11 4:14 
QuestionBinary tree question Pin
sadas232341s30-Apr-11 8:35
sadas232341s30-Apr-11 8:35 
AnswerRe: Binary tree question Pin
barneyman30-Apr-11 20:37
barneyman30-Apr-11 20:37 
GeneralRe: Binary tree question Pin
sadas232341s30-Apr-11 20:48
sadas232341s30-Apr-11 20:48 
GeneralRe: Binary tree question Pin
barneyman30-Apr-11 20:50
barneyman30-Apr-11 20:50 
GeneralRe: Binary tree question Pin
sadas232341s30-Apr-11 20:55
sadas232341s30-Apr-11 20: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.