Automating MSProject
-
I am facing problem in automating MSProject from VC++ automation client aplication.I have created simple VC++ dialog based application In which I generated Wrapper class file for MSproject type library using ClassWizard.When I run the MSProject application in Single Threaded automation client application it runs fine.But when I run MSProject application in multithreaded automation client application I got the problem if first thread close the MSProject application then successive thread get the problem in accessing method of MSProject component while I am seperatly instantiating MSProject application instance in thread.While this problem doesnot occur for Excel and Word. I found from MSDN that every time MSProject Application instance is not created if MSProject application is already running then the instance of that is shared .But my requirement is that I want to create VC++ multithreaded automation client application .Everytime How I can get the new instance of MSProject in thread. Please help me.It is very urgent. Thanks in advance Sanjeev