DLL函数问题(100)

  • 主题发起人 主题发起人 lynch2611
  • 开始时间 开始时间
L

lynch2611

Unregistered / Unconfirmed
GUEST, unregistred user!
CI_SymEncrypt( long nFunction, unsigned char *pEntity, unsigned char *pPlainData, unsigned long nPlainLength, unsigned char *pCipherData, unsigned long *pnCipherLength);上面的函数是DLL中C语言的函数原型,转化成Delphi中,函数应该是什么样子啊?
 
function CI_SymEncrypt(nFunction:integer;pEntity:pchar;pPlainData:pchar;nPlainLength:integer;pCipherData:pchar;pnCipherLength:integer):integer;cdecl; external '*.dll';procedure CI_SymEncrypt(nFunction:integer;pEntity:pchar;pPlainData:pchar;nPlainLength:integer;pCipherData:pchar;pnCipherLength:integer);cdecl; external '*.dll';有return就用第一个,没有就用第二个;
 
接受答案了.
 
后退
顶部