This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: [Mingw-users] FARPROC not the same as in win32 SDK]


FYI.
Earnie.
--- Begin Message ---
Hi,

I recently got the w32api from the CVS and now the compilation of this 
small code broke. 

FARPROC fpDirectDrawCreate = GetProcAddress(hmodDDraw, "DirectDrawCreate");
if (fpDirectDrawCreate != NULL) 
{
    retval = (*fpDirectDrawCreate) (NULL, &lpdd, NULL);
}

The reason is the definition of FARPROC which was in former versions
typedef int (WINAPI *FARPROC)();
and is now
typedef int (WINAPI *FARPROC)(void);

This differs from the definition in the win32 SDK include files and breaks
for example Microsofts DirectDraw examples.

I hope you'll revert to the previous version.

bye
    ago
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723
 phone: +49 3725 349 80 80	mobile: +49 172 7854017
 4. Chemnitzer Linux-Tag http://www.tu-chemnitz.de/linux/tag/lt4


_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
--- End Message ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]