This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems with Cygwin_dll.h ?


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]