• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

use an ocx component in visual basic 2005 compatible only in visual basic 6

Hello Experts,
I have to use an ocx component in a visual studio 2005 project, but this ocx component is compatible only in visual basic 6.
Have you some suggestions?
2 Solutions
Do you own the code of the ocx ?
If not, the only suggestion I have if to write a new COM in C++ with VS2005 that will aggregate the old one. Then you will have to expose the interfaces of the old component to your VB.Net app through the new COM.
Éric MoreauSenior .Net ConsultantCommented:
what makes this OCX only compatible to VB6? normally when you add a reference to a COM component, a set of interops are created for you to be able to use it from .Net.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now