• C

how to define Wndproc in Borland c++4.5

Dear sir:
   I just begin to learn Bc++,yesterday,I finished my first
programm for windows.but when I compiled it,It always display "can not convert 'long[pascal*][unsigned int,unsigned short,unsigned short,long]'tolong [pascal*] [unsigned int,int,int,long]in function pascal WinMain[unsigned int,unsigned,char *,int]
Why?Thank you!


youngestAsked:
Who is Participating?
 
Tommy HuiConnect With a Mentor EngineerCommented:
You should use the exact WNDPROC declaration for defining your function:

  LRESULT MyWndProc(HWND hwnd, MSG msg, WPARAM wparam, LPARAM lparam)
  {
    // rest of your code here.
  }


0
 
tulinCommented:
Your function probably differs from its prototype
(second and third parameters conflict),
or needs to be prototyped.
Send full program code for exact answer.
0
 
youngestAuthor Commented:
Dear thui:
  Can you tell me your E-mail address so that I can send my
programm to you?thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.