Solved

VB6 ocx in C# prog

Posted on 2003-11-17
3
523 Views
Last Modified: 2008-02-26
I have a vb6 activex control(.ocx) that I need to use in a .NET app, but I am unable to add the control. (err - Converting the assembly to a .NET assembly failed. Error loading type library/dll. (I have already tried aximp, with the same results). No interop dll is available., Anyone have an idea how I might be able to pull this off? (I have no source code for the .ocx)

thanks in advance.
0
Comment
Question by:ocjared
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 250 total points
Comment Utility
If all else fails, you could wrap it up within another usercontrol in VB6, by re-exposing all the properties methods through the new control.

However, I would explore other avenues before resorting to this.

Smg.
0
 
LVL 1

Author Comment

by:ocjared
Comment Utility
Any suggestions for other avenues?
0
 
LVL 10

Expert Comment

by:smegghead
Comment Utility
Would you be able to send me the control ?? I could try it here.. is it completely stand-alone ? my email is on my profile.

Chrs
Smg.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now