| |
adammil2000
Posts: 2
Score: 0
Joined: 8/28/2005
Status: offline
|
I now have it working, partially. I can use CreateObject and create and then control the new instance of the C# code with VBScript. However, I cannot use an already running instance of the C# code using GetObject. What I am trying to do is the same as when you control an instance of MS Word with VBScript using GetObject(,"Word.Application"). This command doesn't actually start Word, but instead uses the instance that's already open and running. What I changed to get it working this far was to use the System.Runtime.InteropServices namspace, the [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] and [ClassInterface(ClassInterfaceType.None)] tags, and created a new interface with the same name as the class and that begins with an underscore (class interface) and did the regasm /tlb option. This is the last obstacle for me and I assume I am still doing something wrong. Thanks in advance for any ideas.
_____________________________
Adam Miller http://www.tigermud.com What kind of world would you create? TigerMUD's goal is to let anyone create multiplayer text-based games using our feature-rich C# game engine.
|
|