Click here to Skip to main content
15,914,111 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionWhere can I get the OLE specification? Pin
whiteclouds2-Jun-11 6:09
whiteclouds2-Jun-11 6:09 
AnswerRe: Where can I get the OLE specification? Pin
Richard MacCutchan2-Jun-11 21:34
mveRichard MacCutchan2-Jun-11 21:34 
GeneralRe: Where can I get the OLE specification? Pin
whiteclouds2-Jun-11 22:05
whiteclouds2-Jun-11 22:05 
QuestionHow to resize one CDockablePane in docking state? [modified] -- (it seems not so HOT as before here.) Pin
SAMZCN30-May-11 20:58
SAMZCN30-May-11 20:58 
QuestionSetFocus API in MFC Pin
vikram attiganal30-May-11 4:08
vikram attiganal30-May-11 4:08 
AnswerRe: SetFocus API in MFC Pin
barneyman1-Jun-11 2:08
barneyman1-Jun-11 2:08 
QuestionThe correct way to clear a embeded map variable [modified] Pin
cy163@hotmail.com28-May-11 3:56
cy163@hotmail.com28-May-11 3:56 
AnswerRe: The correct way to free a map variable Pin
Alain Rist28-May-11 4:09
Alain Rist28-May-11 4:09 
QuestionMFC TabStops issue Pin
kasi1425-May-11 11:43
kasi1425-May-11 11:43 
QuestionHow to remove the "0" from the starting i.e. from the left of the CString Pin
deadlyabbas24-May-11 21:22
deadlyabbas24-May-11 21:22 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
Richard MacCutchan24-May-11 23:27
mveRichard MacCutchan24-May-11 23:27 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
pratik_mishra3530-May-11 18:21
pratik_mishra3530-May-11 18:21 
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 

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.