delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/02/13/12:33:54

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <3C6AA2F7.BD71F164@yahoo.com>
Date: Wed, 13 Feb 2002 12:31:35 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Earnie Boyd <Cygwin-Apps AT cygwin DOT com>
Subject: [Fwd: [Mingw-users] FARPROC not the same as in win32 SDK]

This is a multi-part message in MIME format.
--------------97E3448C89C17459D74B422A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

FYI.
Earnie.
--------------97E3448C89C17459D74B422A
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Apparently-To: earnie_boyd AT yahoo DOT com via web12105.mail.yahoo.com; 13 Feb 2002 09:18:04 -0800 (PST)
X-RocketRCL: 1038;1;2958330726
Return-Path: <mingw-users-admin AT lists DOT sourceforge DOT net>
X-Track: 1: 40
Return-Path: <mingw-users-admin AT lists DOT sourceforge DOT net>
Received: from usw-sf-fw2.sourceforge.net  (EHLO usw-sf-list1.sourceforge.net) (216.136.171.252)
  by mta544.mail.yahoo.com with SMTP; 13 Feb 2002 09:17:32 -0800 (PST)
Received: from localhost ([127.0.0.1] helo=usw-sf-list1.sourceforge.net)
	by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))
	id 16b30s-0004sn-00; Wed, 13 Feb 2002 09:16:10 -0800
Received: from meg.hrz.tu-chemnitz.de ([134.109.132.57])
	by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))
	id 16b30B-0004iC-00
	for <mingw-users AT lists DOT sourceforge DOT net>; Wed, 13 Feb 2002 09:15:27 -0800
Received: from sunnyboy.informatik.tu-chemnitz.de ([134.109.193.18])
	by meg.hrz.tu-chemnitz.de with esmtp (Exim 3.32 #3)
	id 16b308-0000PT-00
	for mingw-users AT lists DOT sourceforge DOT net; Wed, 13 Feb 2002 18:15:24 +0100
Received: from stargate.ago.vpn (rotuma.informatik.tu-chemnitz.de [134.109.185.55])
	by sunnyboy.informatik.tu-chemnitz.de (8.8.8+Sun/8.8.8) with ESMTP id SAA29715
	for <mingw-users AT lists DOT sourceforge DOT net>; Wed, 13 Feb 2002 18:15:20 +0100 (MET)
Received: from lupus.ago.vpn (lupus.ago.vpn [192.168.26.203])
	by stargate.ago.vpn (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 9051A19072
	for <mingw-users AT lists DOT sourceforge DOT net>; Wed, 13 Feb 2002 16:56:17 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by lupus.ago.vpn (Postfix) with ESMTP id BAF671F9C
	for <mingw-users AT lists DOT sourceforge DOT net>; Wed, 13 Feb 2002 16:51:34 +0100 (MET)
From: Alexander Gottwald <Alexander DOT Gottwald AT informatik DOT tu-chemnitz DOT de>
To: mingw-users AT lists DOT sourceforge DOT net
Message-ID: <Pine DOT LNX DOT 4 DOT 21 DOT 0202131642160 DOT 1151-100000 AT lupus DOT ago DOT vpn>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [Mingw-users] FARPROC not the same as in win32 SDK
Sender: mingw-users-admin AT lists DOT sourceforge DOT net
Errors-To: mingw-users-admin AT lists DOT sourceforge DOT net
X-BeenThere: mingw-users AT lists DOT sourceforge DOT net
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:mingw-users-request AT lists DOT sourceforge DOT net?subject=help>
List-Post: <mailto:mingw-users AT lists DOT sourceforge DOT net>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/mingw-users>,
	<mailto:mingw-users-request AT lists DOT sourceforge DOT net?subject=subscribe>
List-Id: General mail list for posts concerning MinGW <mingw-users.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/mingw-users>,
	<mailto:mingw-users-request AT lists DOT sourceforge DOT net?subject=unsubscribe>
List-Archive: <http://www.geocrawler.com/redir-sf.php3?list=mingw-users>
X-Original-Date: Wed, 13 Feb 2002 16:51:34 +0100 (MET)
Date: Wed, 13 Feb 2002 16:51:34 +0100 (MET)
X-Mozilla-Status2: 00000000

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 DOT Gottwald AT informatik DOT tu-chemnitz DOT 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 AT lists DOT sourceforge DOT net

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

--------------97E3448C89C17459D74B422A--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019