Integration in Delphi (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 compilation.
System requirements
The following files are needed in order to link the DLL into Delphi programs:
- TcAdsDll.dll - dynamic function library located in the 'System32' directory of Windows NT/2000.
- Delphi 5.0 or higher;
- TwinCAT 2.9 or higher;
Importing the type library
- Open the Import Type Library dialog box via the menu command: Project -> Import Type Library.
- In the dialog box select the Beckhoff TcAdsDll x.x Type Library from the list and confirm with a mouse click on Create Unit....
The type library is generated e.g. in the folder .../Delphi 5/Imports. Please integrate the unit in your application.