Jump to content
  • Advertisement
Sign in to follow this  
tjoink

[.net] ocx usage

This topic is 4929 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
It might be possible that the specific ActiveX can not be 'transformed' to .NET... Did AxImp give any messages?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!