Solved

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

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

713 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