public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [Fwd: [Mingw-users] FARPROC not the same as in win32 SDK]
@ 2002-02-13  9:32 Earnie Boyd
  0 siblings, 0 replies; only message in thread
From: Earnie Boyd @ 2002-02-13  9:32 UTC (permalink / raw)
  To: Earnie Boyd

[-- Attachment #1: Type: text/plain, Size: 12 bytes --]

FYI.
Earnie.

[-- Attachment #2: Type: message/rfc822, Size: 3980 bytes --]

From: Alexander Gottwald <Alexander.Gottwald@informatik.tu-chemnitz.de>
To: mingw-users@lists.sourceforge.net
Subject: [Mingw-users] FARPROC not the same as in win32 SDK
Date: Wed, 13 Feb 2002 16:51:34 +0100 (MET)
Message-ID: <Pine.LNX.4.21.0202131642160.1151-100000@lupus.ago.vpn>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-13 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13  9:32 [Fwd: [Mingw-users] FARPROC not the same as in win32 SDK] Earnie Boyd

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