It is better to put a "main thread" in your service application and provide
a message pump for it. Then is the rest of your application you consider
this main thread with his hidden window handle as the form in your GUI
> I have made an object of the complete server, so I can compile
> it as a program or as a service application.
Why not make your object self contained, that is make it as explained above:
with a thread having a message pump.
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
----- Original Message -----
From: "Paul" <[EMAIL PROTECTED]>
To: "ICS support mailing" <email@example.com>
Sent: Tuesday, April 11, 2006 8:21 PM
Subject: Re: [twsocket] Postmessage in Service application
> Normally, when a Http request is done (thru OnRequestdoen) I post a
> to the form to restart a next Http request.
> This is normally done as PostMessage(handle, MyMessage, 0, 0)
> But where can I find the handle of the service application ?
> I have a similar problem with a new Httpserver I'm writing.
> I have made an object of the complete server, so I can compile it as a
> program or as a service application.
> It also has a buch of threads running
> This works fine, but now I want one of the threads inform the service thru
> Postmessage so the thread can proceed without the delays of sync objects.
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be