Testing my COM callable assembly
Hi All,
I have created a COM callable assembly which consists of an Interface, a single class which implements the interface. In this case the implementation is a single method.
I have registered the assembly, created a type library and added the assembly to the GAC.
The problem I have is I have no idea how to test it.
I thought about opening an Office application like WORD or EXCEL 2003 and trying it from there but beyong referencing the COM assembly I have no idea how to code it.
Any ideas ?
How about VBScript?
Re: Testing my COM callable assembly
The main thing is that you can reference it from an application like EXCEL, WORD, etc.
You can open the visual basic ide from EXCEL, Open the code for the form1 and on the activate event test you method.
For Instance:
Dim MyComObject As ComLibrary.ComClass
Sub Activate
MyComObject=New ComLibrary.ComClass
Msgbox MyComObject.Method1
End Sub