View Single Post
  #2 (permalink)  
Old October 1st, 2003, 06:10 PM
merediths merediths is offline
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


try changing

LRESULT CALLBACK CEasyWindow::ProcessMessage(HWND m_hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

to

LRESULT CALLBACK ProcessMessage(HWND m_hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

(i.e. make it a global function). Being a member function is adding a hidden this pointer to the arglist, so your code actually compiles to something along the lines of ....

  ProcessMessage(CEasyWindow* this, UINT msg, WPARAM wParam, LPARAM lParam)

 and therefore it doesn't match the winproc prototype.

Regards,
Meredith Shaebanyan

Reply With Quote