Posted on 2006-11-03
I have a .NET windows application that I created a COM class for. I registered the assembly using regasm and I am able to successfully call the public methods from vb6 and vbs. Here is my problem :)
I have the following code in a vbscript
Set mySalesEngine = CreateObject("SalesEngine.ComInterface")
Everything works fine. the .NET windows app opens and the RunSalesEngine method is invoked. However, as soon as it is done running it closes. I know why it is doing this because the variable I created in my vbscript is destroyed when the script is done running.
My question is how can I make this not happen? I want the .NET windows app to remain open after the code in the vbscript is complete.