how 2 create api in vb.net(urgent please)?
Printable View
how 2 create api in vb.net(urgent please)?
you gave your post a 4 start rating without any replies?? :rolleyes:
anyway, if you're takling about making a dll with functions/sub in it that you can call from other apps, you can put the functions/subs in a class library, then it will compile into a dll. Then, when you create another .net app, you can add a reference to the class library in the IDE and use the functions in the dll. I must say however, I have never tried to call a dll made this way from an app made in something other than .net though like (VB6 for example). Has any one call a class library dll from a non .net app?
kevin
I'm not sure if its possible to call a .Net DLL from a VB6 App. you'd still need to have the framework installed anyway, so you might as well write the whole ap in .net.
It's possible and not even particularly complex. The MSDN article "Can I Interest You In 5000 Classes?" explains how to expose the entire .NET Framework to your VB6 apps.Quote:
I'm not sure if its possible to call a .Net DLL from a VB6 App.
In a nutshell:
- Write your .NET code
- Write some wrapper methods to expose the desired functionality
- Install the assembly in the Global Assembly Cache
- Reference the .DLL from your VB6 project's "References" dialog
Voila!
How is this useful? If you have a large application that you would like to incrementally migrate to .NET, this is the way to do it. You can identify individual pieces of functionality, peel them off, and move them to .NET one at a time.
Nice. :thumb: