Z
zhjx
Unregistered / Unconfirmed
GUEST, unregistred user!
做了dll,其中二个函数的传入参数类型是Pchar,即需要调用的时候传入一个字符串,程序编译可以通过,但提示如下:
[Warning] mainform.pas(315): Unsafe type 'PChar'
[Warning] mainform.pas(335): Unsafe type 'keyitem1: PAnsiChar'
函数定义如下:
Function getsysitem(keyitem1char):OleVariant;stdcall;
Function getsysdoc(keyitem1char):OleVariant;stdcall;
[Warning] mainform.pas(315): Unsafe type 'PChar'
[Warning] mainform.pas(335): Unsafe type 'keyitem1: PAnsiChar'
函数定义如下:
Function getsysitem(keyitem1char):OleVariant;stdcall;
Function getsysdoc(keyitem1char):OleVariant;stdcall;