S
shenfeng_126
Unregistered / Unconfirmed
GUEST, unregistred user!
dll: test.dll<br><br>函数:<br>FUNCTION_DECLARE(CI_RV)<br>CI_SymEncrypt(<br> long nFunction, <br> unsigned char *pEntity, <br> unsigned char *pPlainData,<br> unsigned long nPlainLength,<br> unsigned char *pCipherData,<br> unsigned long *pnCipherLength<br>   ; <br><br>请问在delphi中如何定义和调用呢?<br><br>我的定义如下:<br>function CI_SymEncrypt(nFunction : Integer; pEntity, pPlainDatachar; nPlainLength : Integer; pCipherData : Pchar ; pnCipherLength:integer):Integer; cdecl; external 'test.dll' name 'CI_SymEncrypt';<br><br>调用如下:<br>CI_SymEncrypt(1,Pchar('afd'),Pchar('afd'),3,Pchar('afd'),1);<br><br>但运行程序刚启动就报错