Re: What does WinMain do?

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

On Mon, 15 Nov 2004 19:45:49 -0800, Derek Parnell
<guest at rapideuphoria.com> wrote:
> > In your code below, it listens for a WM_QUIT message... how could a
> > program send that? And how would it send it to itself?
> 
> }}}
<eucode>
> include dll.e
> include machine.e
> 
> constant PostQuitMessage   = define_c_proc(user32, "PostQuitMessage", {C_INT})
> 
> integer exitcode exitcode = 0
> 
> c_proc( PostQuitMessage, { exitcode } )
> </eucode>
{{{

> 
> The 'exitcode' value turns up as the wParam field in the WM_QUIT
> message. This ought to be passed back to the operating system
> when you end the program.

Ah, thank you.
I'll add that to my code.

-- 
MrTrick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu