Solved

How to use a .Net 2.0 dll in a Visual Basic 6.0 project?

Posted on 2008-09-30
3
292 Views
Last Modified: 2013-11-26
We have an application created in C# 2005 using .Net framework 2.0 that prompts the user for inputs and then pops up some dialog boxes.
I also have the dll for this application as a com interop.

I would like to call this C# application from another VB 6 project. Probably I will have to provide references for the .net 2.0 dll in the VB 6 project.

Please advise if its possible? if yes, how can this be accomplished?

Thanks in advance!

0
Comment
Question by:vdesai_8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 27

Accepted Solution

by:
VBRocks earned 500 total points
ID: 22609523
Here's a couple of articles I wrote at The Code Project.  Take a look at them and see if they can help you out:

    Creating COM DLL with VS 2005:  A walkthrough
    http://www.codeproject.com/KB/COM/VS2005ComDllWalkThru.aspx

    Registering COM DLL with VS 2005:  A walkthrough
    http://www.codeproject.com/KB/COM/VS2005RegisteringComDLL.aspx
0
 
LVL 8

Expert Comment

by:Leo Eikelman
ID: 22647092
The informaiton here shows you how to create an MSI, which you can distribute on multiple machines.

http://juststuffreally.blogspot.com/2008/02/distributing-net-dll-for-use-by-vb6.html
0
 

Author Closing Comment

by:vdesai_8
ID: 31501704
Thanks!
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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