Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Communication_of_DLLs_with_Delphi

Example of DLL in Delphi

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi: communication with DLLs (C++, Delphi)

This is an example of communication between main program (Delphi) and multiple DLLs (C++, Delphi). Initialization of the DLL works with shared functions (with possibility to use callbacks in DLL to call functions in the main program). After the initialization there are created pairs of ExtAIAPI (Main program) and ExtAI (DLL) classes which are derived from COM interface and interact between each other without using shared functions => 1 physical DLL file can be used for multiple classes / threads / instances at once.