B
breezily
Unregistered / Unconfirmed
GUEST, unregistred user!
extern "C" LPSTR __declspec(dllexport) __stdcall test(LPSTR *lpstrArray,int leng)<br>怎么用呀?<br>function test(lpstrArrayLPSTR;leng:Integer)Char ;stdcall ;far;<br> external 'dll.dll' name 'test';<br>var<br> aarr:array[0..4] of PANSIChar;<br> PLPSTR ;<br> arrr:array[0..4] of array[0..1] of Char ;<br> retChar ;<br>begin<br> arrr[0]:='11';<br> arrr[1]:='12';<br> arrr[2]:='13';<br> arrr[3]:='14';<br> arrr[4]:='15';<br> aarr[0]:=@arrr[0];<br> aarr[1]:=@arrr[1];<br> aarr[2]:=@arrr[2];<br> aarr[3]:=@arrr[3];<br> aarr[4]:=@arrr[4];<br> ret:=StrAlloc(255);<br> p:=@aarr[0];<br> ret:=test(p,4);<br>end;<br>调用出问题?异常!