Any problems with ON_MESSAGE in Visual C++ 8?
-
Hello, Previously my code was in Visual C++ 6.0, where ON_MESSAGE was running fine, with me religiously fulfilling all its requirements, i.e. return type was LRESULT, parameters to my function were WPARAM and LPARAM. But the same code, when I converted to VS 2005, the program only compiles and the DLL gets created, but ON_MESSAGE macro seem to be failing? My user defined message does not get called at all. Is a change needed in how I write ON_MESSAGE macro? Please suggest the remedy. thanks in advance.
Software Developer Sanjay Khapre
-
Hello, Previously my code was in Visual C++ 6.0, where ON_MESSAGE was running fine, with me religiously fulfilling all its requirements, i.e. return type was LRESULT, parameters to my function were WPARAM and LPARAM. But the same code, when I converted to VS 2005, the program only compiles and the DLL gets created, but ON_MESSAGE macro seem to be failing? My user defined message does not get called at all. Is a change needed in how I write ON_MESSAGE macro? Please suggest the remedy. thanks in advance.
Software Developer Sanjay Khapre
-
SanjaySMK wrote:
My user defined message
How do you create your user defined message? Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
Hi, either by using enum or by # define e.g. enum { WM_DOCLISTDCLICKED = WM_APP+1, WM_DOCLISTCLICKED = WM_APP+2 }; OR # define WM_DOCLISTDCLICKED WM_APP+1 # define WM_DOCLISTCLICKED WM_APP+2
Software Developer Sanjay Khapre
modified on Friday, January 2, 2009 7:42 AM
-
Hi, either by using enum or by # define e.g. enum { WM_DOCLISTDCLICKED = WM_APP+1, WM_DOCLISTCLICKED = WM_APP+2 }; OR # define WM_DOCLISTDCLICKED WM_APP+1 # define WM_DOCLISTCLICKED WM_APP+2
Software Developer Sanjay Khapre
modified on Friday, January 2, 2009 7:42 AM
Well, i was just curious that whether you was using the obsolete
WM_USER
for defining you messages. The ON_MESSAGE is changed in VS 2005[^]. Well, could you please post your message map and relevant code snippet? Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.