delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/05/04:23:48

From: tjoen AT dds DOT nl
Subject: Re: Windows application
5 Sep 1998 04:23:48 -0700 :
Message-ID: <199809041809.UAA22577.cygnus.gnu-win32@k9.dds.nl>
References: <35ECB4FC DOT 69AB02CA AT iol DOT ie>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

> Date:          Wed, 02 Sep 1998 04:01:17 +0100
> From:          LO <lo7 AT iol DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019