Click here to Skip to main content
16,019,289 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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[^]
Posted
Updated 15-Mar-16 23:47pm
v2
Comments
Michael_Davies 26-Feb-16 6:05am    
Google returns lots of answers;

Look at this: https://groups.google.com/forum/#!topic/comp.lang.pascal.delphi.misc/CFQ_1fcmkWk
fourti_nabil 26-Feb-16 8:24am    
Thank you, this helped to load the dll statically. but i'm still looking for a solution to load it dynamically.
Michael_Davies 26-Feb-16 8:42am    
Edit your question and refine it adding that you mean to load dynamically.

1 solution

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[^]
 
Share this answer
 
Comments
141166 12-Apr-21 4:57am    
thx, everybody can refer to this demo.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900