Howd'y,
I have an API written in C++ and would like to access this using VB. Is this possible? If so how?
Printable View
Howd'y,
I have an API written in C++ and would like to access this using VB. Is this possible? If so how?
well, if you've built (for example) MyDLL.dll, then the functions available will be in the MyDLL.def file. Then, insert a Declare statement into a module in your VB project.
eg:
is written as:Code:long TheFunction(int firstnumber, char* astring, float another) {
...
}
Then just use it in the normal way.Code:Declare Function TheFunction Lib "MyDLL" (firstnumber as Integer, astring as String, another as Single)