From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Subject: Re: Problem calling WINAPI functions with structs 18 Jan 1998 11:09:36 -0800 Message-ID: <9801170213.AA20536.cygnus.gnu-win32@modi.xraylith.wisc.edu> References: <199801151346 DOT OAA22673 AT tpdnws DOT tpd DOT tno DOT nl> To: "Gert van Antwerpen" Cc: gnu-win32 AT cygnus DOT com "Gert van Antwerpen" 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 AT cygnus DOT com" with one line of text: "help".