From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: ntxlib works on Windows 95 2 Jan 1998 23:28:31 -0800 Message-ID: <01BD1830.3D8B7B50.cygnus.gnu-win32@gater.krystalbank.msk.ru> To: "gnu-win32 AT cygnus DOT com" , "'vischne AT ibm DOT net'" vischne AT ibm DOT net wrote: > The reason I say this is that libX11 doesn't have a `main' entry point and > assumes, Unix-style, that the X-program calling libX11 will have a `main'. > > ntxlib, on the other hand, uses WinMain to get hInstance, without which > you cannot generate Windows with CreateWindow calls. WinMain gets > the argc and argv parameters and passes them to a call on main(). > WinMain() isn't neccessary for proper operation. It's easy to call hInstance = GetModuleHandle(); in ntxlib's XOpenDisplay() implementation. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia Looking for a job. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".