delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/21/13:37:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <001801c00b96$6fee6bf0$86988780@LITURCHINILAP>
From: "Andrea Malagoli" <a-malagoli AT uchicago DOT edu>
To: "Cygwin" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Problems with Cygwin_dll.h ?
Date: Mon, 21 Aug 2000 12:37:11 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

The /usr/include/cygwin/cygwin_dll.h  header seems to have
conflicting definitions for  _cygwin_dll_entry.

It is declared as:
 int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr);

but it is then implemented as:
int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr)
{                                                ^^^^^^^^^^^

From the examples in various bits of the documentation, it seems that
the right definition is the first one, with HANDLE, but I would like to
confirm this. 

Without changes, the compiler gives an error when trying to compile a DLL.

-Andrea Malagoli






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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