So it's as easy as starting a thread and calling Application.Run, and the COM object will find that message loop and use it appropriately? That would pretty much be the threads entire purpose I assume? Also, do I have to call Application.Exit from the same thread, to exit the message loop? I don't ever expect to get a message on that loop as I said it is simply need to have a message loop to satisfy the com object requirements.
Main Topics
Browse All Topics





by: AvonWyssPosted on 2004-10-12 at 13:06:10ID: 12291441
Both is possible. Actually, you can have console applications that also have forms (no matter if they are visible or not). To start a new message loop on a given thread, call Application.Run() - see the help files for details.