Mail Archives: cygwin/2000/08/21/14:39:38
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 -