Re: What does WinMain do?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 smile
> > 
> > Use this ...
> > 
> >  WinMain(0,0)
> > 
> > This starts the eventloop without having any main window.
> > 
> > --
> > Derek Parnell
> > Melbourne, Australia
> > 
> > 
-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu