Skip to main content
gamedev.net
🔒 Locked

[.net] ocx usage

Started by tjoink 6 replies 1.1k views
Original Post
tjoink
tjoink
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..
ernow
ernow
Right-click on the toolbox and select Add/Remove items.

The browse to the managed dll (Ax.dll) and select it.

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

Cheers
tjoink
tjoink
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..
ernow
ernow
It might be possible that the specific ActiveX can not be 'transformed' to .NET... Did AxImp give any messages?
tjoink
tjoink
no, it just generates these two dll's.
8! bits.. wow..
ernow
ernow
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
JesseT
JesseT
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?
tjoink
tjoink
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..

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.