How to call 'C' based DLL from VB.NET
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How to call 'C' based DLL from VB.NET

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Minnesota, USA
    Posts
    2

    How to call 'C' based DLL from VB.NET

    Hi all,
    First post here.

    I am the author of the MAPM arbitrary precision math library. This is a library which allows the user to make any calculation to any desired precision level. The library is written in straight ANSI C.

    On many occasions, I get an email on how to use the library from a VB.NET / Visual Basic application. I have very little basic experience, and I don't know what to tell them. I would really like to tell them how to proceed to call MAPM from a basic application.

    Let's assume they can compile the library with a C compiler and create a DLL.

    So my question is there a conventional / standard way to call a C based DLL from a VB application. If there is some thread or help available somewhere, I would like to send the people to that location.

    Thanks much,
    Mike

  2. #2
    Join Date
    Apr 2009
    Posts
    6

    Re: How to call 'C' based DLL from VB.NET

    It's no different than in classic VB.

    http://edais.mvps.org/Tutorials/CDLL/index.html

    Just make sure you declared the function correctly and there should be no issue.

  3. #3
    Join Date
    Mar 2009
    Location
    Minnesota, USA
    Posts
    2

    Re: How to call 'C' based DLL from VB.NET

    Thank you very much for the link, much appreciated.
    Mike

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center