我需要将字节数组从NS Basic传递到静态C ++ dll。
在NS Basic中,我将这样的函数定义为静态dll。
Declare "Function myFunc Lib ""dllLib.dll""(ByVal data As Byte()) As Long"
Buffer = Array(0,1,2,3)
'call the function
myFunc(Buffer)
为此,我想知道静态C ++函数的签名应该是什么?
最佳答案
long myFunc(unsigned char* buffer);
您可能还需要在数组的大小中传递第二个参数-
long myFunc(unsigned char* buffer, int size);
关于c++ - 如何将NS基本数组传递给静态C++ dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10967309/