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
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.
Re: How to call 'C' based DLL from VB.NET
Thank you very much for the link, much appreciated.
Mike