Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Cygwin" Subject: Re: Problems with Cygwin_dll.h ? Date: Mon, 21 Aug 2000 13:41:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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