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 application.
> 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 -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Paul" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> 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 > message > 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. > > Paul > > -- > 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