delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/21/14:39:38

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: <000f01c00b9f$7189b650$87988780@andyhome>
From: "Andrea Malagoli" <a-malagoli AT uchicago DOT edu>
To: "Cygwin" <cygwin AT sources DOT redhat DOT com>
Subject: Re: Problems with Cygwin_dll.h ?
Date: Mon, 21 Aug 2000 13:41:39 -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

Here is what I have in my cygwin_dll.h (downloaded with the 1.1.4 release)

#define DECLARE_CYGWIN_DLL(Entry)  \
                                                    \
CDECL_BEGIN                 \
int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr);      \
.......
int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr)       \
{   .....

Whatever the choice, it should be the same in both lines.

I do not know if this is related, but I have problems on W2K in compiling
shared libraries and applications that link to these shared libraries.
Sometimes, when try to run one of these applications, I get an error message
box that says:

"The application failed to initialize properly (0xc0000022). Clik OK to
terminate the application"

As it always happens with windows, no further explanation is given.

I have had this problem when trying to compile both X11R6 and PostgreSQL.

-Andrea Malagoli

On Mon, Aug 21, 2000 at 01:47:51PM -0400, DJ Delorie wrote:
>> 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.
>
>We use HANDLE in cygwin, too.  I've checked in a change.

We do use HANDLE but it should be HINSTANCE:

http://msdn.microsoft.com/library/psdk/winbase/dll_8asu.htm

I removed the declaration that asserted HANDLE in 1.1.4.  I don't know
why this would be a problem unless someone isn't using the most
up-to-date cygwin.

cgf

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



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