Solved

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

Posted on 2008-09-30
3
290 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

825 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