An ActiveX wrapper Clasee

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Woo Mun Foong

    #1

    An ActiveX wrapper Clasee

    Hi,

    How can I create an ActiveX wrapper Class.

    There is a 3rd party ActiveX on my Component Tray that I like to write a
    class to encapsulate.

    Users will use my class as a replacement to the ActiveX, so they should not
    need to drag the ActiveX into their form.

    I am using VB2005 Express Edition.

    In my program I declare my program:-
    Private WithEvents myAxObj As 3rdParty.AxComp onent

    In one of my method I call the ActiveX
    myAxObj.RunProg ram

    and it returns "Object Reference not set to an instance of an object"

    I'd try to initiate the object by
    myAxObj = New 3rdParty.AxComp onent
    but it can't compiled.


    Thank You,
    mfwoo





  • Spam Catcher

    #2
    Re: An ActiveX wrapper Clasee

    =?Utf-8?B?V29vIE11biB Gb29uZw==?= <mfwoo@yahoo.co mwrote in
    news:9A6F104F-56F8-4E0E-8FE3-FC4C8A7C1823@mi crosoft.com:
    Users will use my class as a replacement to the ActiveX, so they
    should not need to drag the ActiveX into their form.
    >
    I am using VB2005 Express Edition.
    >
    In my program I declare my program:-
    Private WithEvents myAxObj As 3rdParty.AxComp onent
    Did you add a reference to the ActiveX DLL?

    Comment

    Working...