Results 1 to 5 of 5

Thread: how 2 create api

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    43

    how 2 create api

    how 2 create api in vb.net(urgent please)?

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    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

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  4. #4
    Addicted Member
    Join Date
    Mar 2005
    Posts
    142

    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.

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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
  •  



Click Here to Expand Forum to Full Width