Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start a seperate process with each CoCreateInstance

Status
Not open for further replies.

Suvendra

Programmer
Jan 26, 2001
2
US
I have a OLE server executable. I want each CoCreateInstance (or CreateObject in VB) to start a different server exe. However, regardless of what threading model I use for the interface, each CoCreateInstance always creates the same exe. What do I have to do ensure that a new exe is started everytime?
 
I found the answer to this. In the app's InitInstance when registering the module derived from CCmdModule class use module.RegisterClassObjects(CLSCTX_LOCAL_SERVER, REGCLS_SINGLEUSE) instead of MULTIUSE

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top