Hello, for the one who knows both C++ and VB, I have a question for you.
I would like to use in VB the function "Add", which have as argue the integers First and Second and return an integer. How could I use this function in VB?
Printable View
Hello, for the one who knows both C++ and VB, I have a question for you.
I would like to use in VB the function "Add", which have as argue the integers First and Second and return an integer. How could I use this function in VB?
I don't understand; is Add a C++ function? If so, it has to be in a DLL, and you can reference the function like this:
:)VB Code:
Public Declare Function Add Alias "AddA" Lib "mydll.dll" (First As Integer, Second As Integer)