我需要从使用VBA的准入中指定一个DL职能。 DL职能的原型是
int __stdcall myFunction(const char* data,
int rows, int cols, int sl, int fullsize,
double aspect_ratio,
double y,
void** ppResult);
我在访问中宣布:
Private Declare Function DllImport_myFunction _
Lib "myFunctionDLL.dll" _
Alias "myFunction" _
(ByVal data As String, _
ByVal rows As Long, _
ByVal cols As Long, _
ByVal sl As Long, _
ByVal fullsize As Long, _
ByVal aspectRatio As Double, _
ByVal y As Double, _
ByRef handle As Long)
当我试图要求出入时,准入遭到侵犯。 我在LLL职能的第一份发言中做了一个突破点,但没有打上。
声明是否不正确?