delphi菜鸟问下,如何调用这个vc作的dll导出函数 ( 积分: 200 )

  • 主题发起人 microyzy
  • 开始时间
M

microyzy

Unregistered / Unconfirmed
GUEST, unregistred user!
vc中原型(默认应该是cdecl约定):<br>extern&nbsp;&quot;C&quot;&nbsp;_declspec(dllexport)&nbsp;BOOL&nbsp;GetServer(ServerParam*&nbsp;pServer,CString&amp;&nbsp;&nbsp;sFlag)<br>有几个问题:<br>1、我有用于vc的lib和h文件,能直接在delphi里用吗?如果不能,该怎么使用这个函数?<br>2、如何出力CString?delphi里面没有的,是mfc的类<br>3、如何使用ServerParam?ServerParam是一个自定义的class,但是和struct差不多,没有任何成员函数或者私有变量,在h文件里有定义<br>本人delphi菜鸟,多谢大家:(
 

Similar threads

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