?
Solved

how to define Wndproc in Borland c++4.5

Posted on 1997-11-25
3
Medium Priority
?
478 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 300 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops 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.
Suggested Courses

770 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