[.net] ocx usage

Started by
6 comments, last by tjoink 19 years, 5 months ago
hi, being quite new to .net I have the following question; I want to use an ocx control (that was used in vb), in my .net app. I've found out that I need to create a wrapper, wich can be done with the program AxImp. This then generates 2 dll's, and that's when I get lost.. How to incoorporate them in my program? thanx for replying!
8! bits.. wow..
Advertisement
Right-click on the toolbox and select Add/Remove items.

The browse to the managed dll (Ax<prog-id>.dll) and select it.

A new control should be have been added now to your toolbox.

Cheers
If I do so, I get an error saying:
there are no components in this dll that can be added to the toolbox.
Any ideas?
8! bits.. wow..
It might be possible that the specific ActiveX can not be 'transformed' to .NET... Did AxImp give any messages?
no, it just generates these two dll's.
8! bits.. wow..
Well then I suggest that you name the ActiveX control (if it is public) and hope someone knows it. If it is a private ActiveX you could opt for migration to/rewriting in .NET.

Cheers
I don't mean to sound condescending, but have you considered ditching the OCX control? ActiveX and OCX are like obsolete technologies, yo.

Can you not reimplement it in pure .NET?
Well, you tell me..
It's part of the tomtom navigator sdk, and all they provide is the ocx. And like I said, just don't know how to get there..

Any further help is appreciated!
8! bits.. wow..

This topic is closed to new replies.

Advertisement