How to use API in vb.net?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to use API in vb.net?

  1. #1
    LiRui Guest

    How to use API in vb.net?

    Hello,
    I found in vb.net,the former API Viewer had gone.So is there any idea
    to insert a API function,or VB has a change in this situation?
    Thanks



  2. #2
    degojs Guest

    Re: How to use API in vb.net?

    You use them as you normally would in VB 6.
    Just make sure that Long is now Int32, etc.


    "LiRui" <lirui163#xf.hb.cninfo.net> wrote in message
    news:3d574789@10.1.10.29...
    > Hello,
    > I found in vb.net,the former API Viewer had gone.So is there any idea
    > to insert a API function,or VB has a change in this situation?
    > Thanks
    >
    >




  3. #3
    Keith Summers Guest

    Re: How to use API in vb.net?


    The real answer here is NOT to use them. Under the CLR everything is "managed"
    code. Calling APIs makes the code "unmanaged". This defeats many of the
    benefits of running under the CLR. I think you will find many new namespaces
    under .NET that will replace APIs quite nicely.

    Keith


    "LiRui" <lirui163#xf.hb.cninfo.net> wrote:
    >Hello,
    > I found in vb.net,the former API Viewer had gone.So is there any idea
    >to insert a API function,or VB has a change in this situation?
    > Thanks
    >
    >



  4. #4
    Arthur Wood Guest

    Re: How to use API in vb.net?


    It should be pointed out that the VAST MAJORITY of situations which called
    for the use of an API have been absorbed into the functionality that is now
    available with the .NET Framework. What exactly do you need to call an API
    for?

    Arthur Wood



    "LiRui" <lirui163#xf.hb.cninfo.net> wrote:
    >Hello,
    > I found in vb.net,the former API Viewer had gone.So is there any idea
    >to insert a API function,or VB has a change in this situation?
    > Thanks
    >
    >



  5. #5
    Tln1 Guest

    Re: How to use API in vb.net?


    LiRui,

    For the most part I agree there is no need to use the API (this is a good
    thing). But you may encounter the need to use the API and to date there have
    only been a coupla instances I did. For one, how did you guys that responded
    get the Windows Service Pack number in VB.NET without using the API? Maybe
    I missed something there, but the only way I found to do it was with the
    API. I was able to get much of the other system info without using the API.
    I am still learning (and there is alot to learn!).

    Regards,
    Terry


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center