This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Windows application


> Date:          Wed, 02 Sep 1998 04:01:17 +0100
> From:          LO <lo7@iol.ie>

[snip]
> int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR
[snip]
> WNDCLASS WndClass;
[snip]
> WndClass.lpfnWndProc = WndProc;

This is the line causing troubles?

> long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG

> W.C:22: assignment to `long int (*)(void *, unsigned int, unsigned int,
> long int
> )' from `long int (*)(void *, short unsigned int, short unsigned int,
> long int)'

Looks like WORD is defined as  short unsigned int.
Replace them by unsigned int or (according to Petzold) the new types 
UINT and WPARAM
That LONG at the end of WndProc should now be LPARAM
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]