This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problem calling WINAPI functions with structs
- To: "Gert van Antwerpen" <antwerp at tpd dot tno dot nl>
- Subject: Re: Problem calling WINAPI functions with structs
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Fri, 16 Jan 1998 20:13:43 -0600
- Cc: gnu-win32 at cygnus dot com
"Gert van Antwerpen" <antwerp@tpd.tno.nl> writes:
> I tried to make some application which has an interface to windows.
> I found that some WINAPI32 functions do not correctly pass their arguments
> to the stack. GetLargestConsoleWindowSize returns a struct and my feeling
> is that GCC does not handle it the same way other windows compilers do, so
> it does not work. I am not sure but also passing structs (by value) to
> WINAPI funcs have also strange results.
>
Can you try -fpcc-struct-return flag and see if it fixes your problem
with GetLargestConsoleWindowSize?
Also, can you send me a (short) sample code that demonstrates the
problem?
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".