Hi all.
I need to call DLL function with an array of long numbers as an argument.
I define this in C++ code as follows:
'#define EXPORT extern "C" __declspec(dllexport)
EXPORT void MyFunc(long *lArgs) {
...
}
How I could call this function from OO Basic?
I do this on Excel VBA very simple:
Public Declare Sub MyFucnd Lib "MyLib.dll" (ByRef lArgs As Long)
Dim MyArray(3) As Long
MyArray(0) = Value0
MyArray(1) = Value1
MyArray(2) = Value2
MyFunc MyArray(0)
This code is working on Excel, but not work on OO Basic
What is mistake? What should I do?
Thanks.
Alex.