Click here to Skip to main content
15,913,361 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
john john mackey5-Nov-08 10:53
john john mackey5-Nov-08 10:53 
GeneralRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
CPallini5-Nov-08 22:03
mveCPallini5-Nov-08 22:03 
AnswerRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
john john mackey5-Nov-08 9:33
john john mackey5-Nov-08 9:33 
AnswerRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
Maximilien5-Nov-08 9:52
Maximilien5-Nov-08 9:52 
AnswerRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
Iain Clarke, Warrior Programmer5-Nov-08 11:57
Iain Clarke, Warrior Programmer5-Nov-08 11:57 
GeneralRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
W.Kim 19875-Nov-08 23:35
W.Kim 19875-Nov-08 23:35 
GeneralRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
Joe Woodbury6-Nov-08 12:50
professionalJoe Woodbury6-Nov-08 12:50 
RantRe: Message Mapping - VC++ 6.0 into Studio 2005 Pin
Roger Stoltz6-Nov-08 2:00
Roger Stoltz6-Nov-08 2:00 
I saw you've solved this, but just for the record:

The fact that message handlers for messages sent to windows returns an LRESULT is not new or changed in any way since VC6, this has always been the case. Have a look at MSDN[^].
The difference between VS2005 and VC6 is that in the later version you'll get a compiler error whereas the older version simply ignores it, which will put the developer in trouble later on.

Just like Iain I made this infamous error many years ago which corrupted my stack as well.

My point is that if you encounter other MFC applications with user defined message handlers mapped with ON_MESSAGE or ON_REGISTERED_MESSAGE that does not return an LRESULT, correct it immediately and save you a lot of future trouble.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


QuestionBrowse for folder new folder path Pin
Royce Fickling5-Nov-08 7:59
Royce Fickling5-Nov-08 7:59 
QuestionRe: Browse for folder new folder path Pin
David Crow5-Nov-08 8:02
David Crow5-Nov-08 8:02 
AnswerRe: Browse for folder new folder path Pin
Royce Fickling5-Nov-08 9:48
Royce Fickling5-Nov-08 9:48 
QuestionRe: Browse for folder new folder path Pin
David Crow5-Nov-08 9:52
David Crow5-Nov-08 9:52 
AnswerRe: Browse for folder new folder path Pin
Royce Fickling5-Nov-08 10:07
Royce Fickling5-Nov-08 10:07 
GeneralRe: Browse for folder new folder path Pin
David Crow5-Nov-08 10:11
David Crow5-Nov-08 10:11 
QuestionProplem with a static library Pin
Stonie965-Nov-08 5:42
Stonie965-Nov-08 5:42 
AnswerRe: Proplem with a static library Pin
Stonie965-Nov-08 7:46
Stonie965-Nov-08 7:46 
QuestionWrite to excel Pin
hellogany5-Nov-08 3:30
hellogany5-Nov-08 3:30 
AnswerRe: Write to excel Pin
achainard5-Nov-08 4:00
achainard5-Nov-08 4:00 
GeneralRe: Write to excel Pin
hellogany5-Nov-08 16:11
hellogany5-Nov-08 16:11 
GeneralRe: Write to excel Pin
achainard5-Nov-08 23:35
achainard5-Nov-08 23:35 
AnswerRe: Write to excel Pin
David Crow5-Nov-08 6:05
David Crow5-Nov-08 6:05 
Questionhow to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 3:21
Krzysztof Gorgolewski5-Nov-08 3:21 
AnswerRe: how to get the HWND from the windows on the "locked screen" Pin
Iain Clarke, Warrior Programmer5-Nov-08 4:52
Iain Clarke, Warrior Programmer5-Nov-08 4:52 
GeneralRe: how to get the HWND from the windows on the "locked screen" Pin
SandipG 5-Nov-08 5:25
SandipG 5-Nov-08 5:25 
QuestionRe: how to get the HWND from the windows on the "locked screen" Pin
David Crow5-Nov-08 6:07
David Crow5-Nov-08 6:07 

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.