Click to See Complete Forum and Search --> : Use .net dll in vb6


xcgeek
June 2nd, 2003, 04:13 PM
** Note **
I will also post this question in the vb6 forum

I have a large vb6 app that I want to start using some of the .net functionality. Could I build a vb.net dll and call the functions from my vb6 app (for things like webservice communication and database access)

If so, when I distribute the app, what distribution files need to be included to make the .net dll work.

Any ideas would be appreciated.

DSJ
June 2nd, 2003, 04:57 PM
Yes, you can but the client will have to have the .NET framework installed. Right-click on your project in solutions explorer and choose properties. Then under then Configuration Properties... Build tab, there is a "Regiser for COM Interop" checkbox.

xcgeek
June 2nd, 2003, 05:05 PM
Does that checkbox automatically load the .net framework into the installer package, and if not, can you set it as a reference to install the appropriate files, or does the .net framework need to be a seperate install. How many more MB of files does the .net framework add to an installation, does it run on old win OS?

Thanks for you reply so far, it was very helpful

DSJ
June 2nd, 2003, 05:09 PM
I'd have to go look into the docs for sure, but I think you'll need a Win98 or better client. And no, the framework isn't included automatically. I've seen people try to include the framework in their installs, but I don't know if they're having any luck. Probably installing the framework first would work best.

xcgeek
June 2nd, 2003, 05:15 PM
Sorry I just relized that the check box you where talking about was in the VS.NET dll project, not the vb6 project.

As for the installing the framework, how much weight does that add to an installation (mb) and do older OS support it.

xcgeek
June 2nd, 2003, 05:24 PM
Using InstallShield Express added 20mb to the installation file when adding the .net framework.

DSJ
June 2nd, 2003, 05:24 PM
Here's the info you're looking for:

http://microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

xcgeek
June 2nd, 2003, 05:32 PM
The .NET Framework 1.1 Redistributable is supported on the following platforms:

Microsoft Windows® Server 2003* (.NET Framework 1.1 is installed as part of the operating system)
Windows XP Professional*
Windows XP Home Edition
Windows 2000*
Windows Millennium Edition (Windows Me)
Windows 98
Microsoft Windows NT® 4.0 Service Pack 6a

xcgeek
June 2nd, 2003, 05:34 PM
Thanks for all you help DSJ