473,394 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.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
1 970
=?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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
7
by: Stefan Saur | last post by:
Hello, I have the commands to access the AutoCAD database via ActiveX within a VB application. Now I am searching for the equivalent commands in C#: VB --> C# GetObject ...
5
by: Chris | last post by:
Greetings, I'm trying to late bind a ActiveX DLL that was made with VB6 in C#. Can you give me an example or URL of this? I've been trying to google it, just cant find a straight answer. Thanks!
5
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown :...
1
by: Dan | last post by:
Good Day All, I am in the process of migrating a VB6 application to .NET using C#. The VB6 application has a bunch of ActiveX user controls that it load dynamically depending upon the situation...
1
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
0
by: Tom Edelbrok | last post by:
I have a VB6 ActiveX DLL wrapper around a 32-bit DLL (therefore forming my own totally new DLL). This permits VB.Net to make calls to the new DLL (whereas VB.Net always failed when making calls to...
3
by: Lou | last post by:
I know I can make an ActiveX dll in .NET and it uses interop. So I end up with 2 files, the .dll and the interop file. I also know I need to use Regasm or something like that to register the .dll...
0
by: J. Smith | last post by:
Hi, Folks! I am trying to figure out what steps VS.NET performs in the background when you add a reference to an ActiveX DLL file. What I do know is that VS creates a wrapper DLL for the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.