By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

An ActiveX wrapper Clasee

P: n/a
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.AxComponent

In one of my method I call the ActiveX
myAxObj.RunProgram

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

I'd try to initiate the object by
myAxObj = New 3rdParty.AxComponent
but it can't compiled.
Thank You,
mfwoo

Nov 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
=?Utf-8?B?V29vIE11biBGb29uZw==?= <mf***@yahoo.comwrote in
news:9A**********************************@microsof t.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.AxComponent
Did you add a reference to the ActiveX DLL?
Nov 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.