|
-
Apr 20th, 2005, 06:24 PM
#1
Thread Starter
Member
how 2 create api
how 2 create api in vb.net(urgent please)?
-
Apr 20th, 2005, 08:09 PM
#2
Re: how 2 create api
you gave your post a 4 start rating without any replies??
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
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Apr 21st, 2005, 02:57 AM
#3
Re: how 2 create api
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.
I don't live here any more.
-
Apr 21st, 2005, 07:53 AM
#4
Addicted Member
Re: how 2 create api
I'm not sure if its possible to call a .Net DLL from a VB6 App.
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.
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.
-
Apr 21st, 2005, 08:14 AM
#5
Re: how 2 create api
Nice.
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|