如C中的函数声明为:
int WINAPI Test(unsigned long* SM_ID,unsigned char* FCS);
在Delphi中的声明为:
function Test(SMID:PLongWord;FCS:Pchar):integer;stdcall;external 'test.dll';
调用为:
SMID:pLongWord;
FCS:Pchar;
RetInt:integer;
RetInt:=Test(SMID,FCS);运行时会返回错误:Access Violation at Adress XXXXX in module "test.dll";这样的DLL应该怎样调用?急!