--- Begin Message ---
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- To: mingw-users at lists dot sourceforge dot net
- Date: Wed, 13 Feb 2002 16:51:34 +0100 (MET)
- Subject: [Mingw-users] FARPROC not the same as in win32 SDK
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 ---