c ++和delphi之间的通信(从dll调用delphi类) [英] Communication between c++ and delphi (call delphi class from dll)
问题描述
我有一个用delphi编写的dll(DELPHI XE6)。我想在Visual Studio C ++项目中使用该DLL。
我需要通过动态加载DLL将delphi类导入到C ++项目(visual studio 2013)中。我尝试了一个演示,但未能成功执行:
我尝试过:
C ++项目 DelphiDllTester(c ++ Project).zip - Google Drive [ ^ ]
delphi DLL项目: DelphiTest(DELPHI XE6 DLL项目).zip - Google Drive [ ^ ]
对于那些可能有同样问题并且感兴趣的人;下面是工作项目的示例代码:
项目生成delphi DLL和导出类实例: DDLL。 zip - Google云端硬盘 [ ^ ]
使用delphi DLL的C ++项目(2版静态和动态加载): DDLLUSERv2.zip - Google云端硬盘 [ ^ ]
I have a dll written in delphi (DELPHI XE6). i would like to use that DLL in a visual studio C++ project.
i need to import the delphi class into the C++ project (visual studio 2013)by dynamically loading the DLLs. i tried a demo , but failed to execute it successfully :
What I have tried:
C++ project DelphiDllTester(c++Project ).zip - Google Drive[^]
delphi DLL project: DelphiTest (DELPHI XE6 DLL project).zip - Google Drive[^]
for those who may have the same problem and who ara interested; following the sample code fro working project :
project to generate delphi DLL and export class instance : DDLL.zip - Google Drive[^]
C++ project to use delphi DLL (2 version Static and Dynamic loading): DDLLUSERv2.zip - Google Drive[^]
这篇关于c ++和delphi之间的通信(从dll调用delphi类)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!