Delphi调用vc编写的dll时,char *,void *和union类型的变量如何声明?(100分)

  • 主题发起人 主题发起人 haha2008haha
  • 开始时间 开始时间
H

haha2008haha

Unregistered / Unconfirmed
GUEST, unregistred user!
这个dll的某些函数的参数是char *.void *,int *,还有联合类型的<br>小弟不知道这些类型在delphi里面如何对应<br>Pchar,Pointer,?
 
char* -&gt; PChar<br>void* -&gt; Pointer<br>int* -&gt;PInteger<br>union-&gt;record<br>example:<br>&nbsp;ULARGE_INTEGER = record<br>&nbsp; &nbsp; case Integer of<br>&nbsp; &nbsp; 0: (<br>&nbsp; &nbsp; &nbsp; LowPart: DWORD;<br>&nbsp; &nbsp; &nbsp; HighPart: DWORD);<br>&nbsp; &nbsp; 1: (<br>&nbsp; &nbsp; &nbsp; QuadPart: LONGLONG);<br>&nbsp; end;
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部