public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem calling WINAPI functions with structs
@ 1998-01-15  6:38 Gert van Antwerpen
  1998-01-16 18:15 ` Mumit Khan
  0 siblings, 1 reply; 2+ messages in thread
From: Gert van Antwerpen @ 1998-01-15  6:38 UTC (permalink / raw)
  To: gnu-win32

Hai

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.

Gert van Antwerpen
antwerp@tpd.tno.nl
Please answer by mail.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem calling WINAPI functions with structs
  1998-01-15  6:38 Problem calling WINAPI functions with structs Gert van Antwerpen
@ 1998-01-16 18:15 ` Mumit Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Mumit Khan @ 1998-01-16 18:15 UTC (permalink / raw)
  To: Gert van Antwerpen; +Cc: gnu-win32

"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".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-01-16 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-15  6:38 Problem calling WINAPI functions with structs Gert van Antwerpen
1998-01-16 18:15 ` Mumit Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).