delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/28/19:42:32

From: thomas DOT nichols AT mail DOT com (Thomas Nichols)
Subject: WINAPI definition
28 Oct 1997 19:42:32 -0800 :
Message-ID: <3.0.2.32.19971029001741.006a1a9c.cygnus.gnu-win32@messagebox.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Thanks to everyone who's offered suggestions so far - much appreciated.
I've resolved the "cannot execute binary file" problem, it doesn't happen
under win95b command.com, only under 4DOS (v6). Very odd.

Now a new question: I'm trying to get existing (third-party) Win32 source
to compile, and the following line breaks:

	static BOOL (WINAPI *Ctl3dRegister)(HINSTANCE);


From looking at preprocessor output, WINAPI is getting expanded to
__attribute__ ((stdcall))

and cc1plus.exe doesn't like this at all.

Any ideas, anyone?

Thanks,
Regards,
Tom.


-
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