I have just migrated from version 5 to .net 2003.
I get some warnings, pointing out my sloppy coding technique; but also one error on the ON_MESSAGE message map entry. I reviewed the .net documentation and found no changes in the format. I can't figure out what's wrong.
It works for version 5.
#define MYMSG (WM_APP + 1)
//sending the msg
pDestWnd->SendMessage(MYMSG,0,0);
//receiving it--the message map entry
... //class wizard generated msgs
//}}AFX_MSG_MAP //end of class wizard entries
ON_MESSAGE (MYMSG, OnUpdatePage)
END_MESSAGE_MAP()
//process it
CMyView::OnUpdatePage()
{
//bunch of stuff
}
I get some warnings, pointing out my sloppy coding technique; but also one error on the ON_MESSAGE message map entry. I reviewed the .net documentation and found no changes in the format. I can't figure out what's wrong.
It works for version 5.
#define MYMSG (WM_APP + 1)
//sending the msg
pDestWnd->SendMessage(MYMSG,0,0);
//receiving it--the message map entry
... //class wizard generated msgs
//}}AFX_MSG_MAP //end of class wizard entries
ON_MESSAGE (MYMSG, OnUpdatePage)
END_MESSAGE_MAP()
//process it
CMyView::OnUpdatePage()
{
//bunch of stuff
}