Accessing a .net dll from VB6
#1
Amateur developer needs help...
I have found a .NET (C# Source) dll that does some functions I would like to use within an existing VB6 App.
Now I have "No idea" how or If I could use them. Examples are given for calling functions from C# but of course not for VB. I'm not in a position to convert the app to .net either.
Anyone help ?
Deano
I have found a .NET (C# Source) dll that does some functions I would like to use within an existing VB6 App.
Now I have "No idea" how or If I could use them. Examples are given for calling functions from C# but of course not for VB. I'm not in a position to convert the app to .net either.
Anyone help ?
Deano
#3
The app is a .ocx thats is called from a parent application built around a supplied VB template.. The wizard wont convert it, and there is no .net template yet.
Deano
Deano
#4
If you are trying to use a third party DLL in your project then just add it to the project references. To do this select Project, References and then click on the browse button to find the DLL you wish to use.
#5
Your VB app will need to speak to the .NET runtime through it's COM API. This will of course mean that you will need .NET runtime on the PC as well as the .NET assembly (which happens to be a dll).
VB doesn't have any native support for .NET, and you won't be able to reference .NET assemblies from a vanilla VB project and use them directly.
IMO you should either migrate to .NET or write the functionality in VB.
Good luck!
After some scratching around: have a look here.
[Edited by MrDeference - 9/13/2003 2:46:36 PM]
VB doesn't have any native support for .NET, and you won't be able to reference .NET assemblies from a vanilla VB project and use them directly.
IMO you should either migrate to .NET or write the functionality in VB.
Good luck!
After some scratching around: have a look here.
[Edited by MrDeference - 9/13/2003 2:46:36 PM]
Thread
Thread Starter
Forum
Replies
Last Post