Re: What does WinMain do?
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 13, 2004
- 513 views
codepilot Gmail Account wrote: > > Question, if you do WinMain(0,0) what is the handle to give > wsaAsyncSelect and the like, instead of get_handle(win), if there is > no win? Did I misunderstand the orginal question? I didn't know it was talking WSAAsyncSelect function. If you were using that funcrion you'd use WinMain as normally done. I thought Patrick was wanting use Win32lib's event looping but without having a main window under Win32lib's control. As Patrick doesn't want to use Win32lib , then the code inside win32lib.ew eventLoop() routine could be extracted and adjusted for his purposes. > > On Fri, 12 Nov 2004 15:15:54 -0800, Derek Parnell > <guest at rapideuphoria.com> wrote: > > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > > > > > Patrick Barnes wrote: > > > > > > IPC won't receive messages unless WinMain is called. Fair enough. > > > > > > I'm not using win32lib at all, how can I duplicate that small part of > > > WinMain so that IPC works? I tried to go through WinMain, but it's a > > > little beyond me > > > > Use this ... > > > > WinMain(0,0) > > > > This starts the eventloop without having any main window. > > > > -- > > Derek Parnell > > Melbourne, Australia > > > > -- Derek Parnell Melbourne, Australia