Results 1 to 2 of 2

Thread: Testing my COM callable assembly

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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?

    Parksie

  2. #2
    Addicted Member Cristian's Avatar
    Join Date
    Jun 2006
    Posts
    228

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width