Solved

how to define Wndproc in Borland c++4.5

Posted on 1997-11-25
3
463 Views
Last Modified: 2011-10-03
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!


0
Comment
Question by:youngest
3 Comments
 
LVL 1

Expert Comment

by:tulin
ID: 1256417
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
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1256418
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
 

Author Comment

by:youngest
ID: 1256419
Dear thui:
  Can you tell me your E-mail address so that I can send my
programm to you?thank you!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question