Linking to Delphi (API interface) Necessary files The following files are needed in order to link the DLL into Delphi programs: TcAdsDll.dll - dynamic function library

 https://infosys.beckhoff.com/english.php?content=../content/1033/tcsample_bdelphi/html/TcAdsDLL_COM_Delphi_Setup.htm&id=

 Linking to Delphi XE2 (COM interface)

The TcAdsDll.dll type library has to be imported (TcAdsDll_TLB.pas unit). Depending on the Delphi version, manual adjustments may be required in order to ensure error-free translation.
Requirements

    Delphi XE2;
    TwinCAT 2.9 or higher;
    TcAdsDll.dll - dynamic function library located in the Windows NT/2000 /XP/... 'System32' directory.

Import Type Library

1. Select Component -> Import component menu command. In dialog window select the option: Import type library and confirm with the Next button.

 

留言

這個網誌中的熱門文章

curiously recurring template pattern delphi generics TLIST TBASE

algodaily alternative essential algorithms data structures daily coding inspired lintcode

toolkit uml generator code orm object-relational mapping er diagram class diagram synchronization