Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendMessage problems

Status
Not open for further replies.

Cohen

Programmer
Joined
Oct 23, 2000
Messages
2
Location
IL
Hi,

I'm currently developping a SDI application using VC++ (MFC).
This application can change the current view. (This is explained inside the MSDN).
Inside the code of the CMainFrame class, I send a message to the current active view (instead of defining a common interface for all possible views) using SendMessage.
This doesn't fine if the active view actually responds to this message.
What's going wrong there ?

Thanks
[sig][/sig]
 
The problem was that I defined the message handler without the wParam and lParam. Although It worked in Debug version, this didn't in Release ver.
After changing the signature of the function, all goes right !
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top