T
theng
Unregistered / Unconfirmed
GUEST, unregistred user!
有一个DLL原型为(是palm conduit编程要调用的):
long UmGetUserID(int iIndex, DWORD *pdwUserID)
我写了如下程序:
......
TPDword = ^Dword;
......
function UmGetUserID(iIndex:integer; pdwUserID:TPDword ):longint;far;external 'UserData.DLL';
.......
Var
dwUserID:dword;
.......
UmGetUserID(1, Addr(dwUserID));
结果执行到上面一句时,出现'access violation at address XXXXXX in module userData.dll, write of address YYYYYYY;'
请问是何道理?
long UmGetUserID(int iIndex, DWORD *pdwUserID)
我写了如下程序:
......
TPDword = ^Dword;
......
function UmGetUserID(iIndex:integer; pdwUserID:TPDword ):longint;far;external 'UserData.DLL';
.......
Var
dwUserID:dword;
.......
UmGetUserID(1, Addr(dwUserID));
结果执行到上面一句时,出现'access violation at address XXXXXX in module userData.dll, write of address YYYYYYY;'
请问是何道理?