Linking into Visual C++
TwinCAT ADS API
The ADS libraries are delivered with every TwinCAT installation and can be found in the directory "..\TwinCAT\AdsApi". If they do not need runtime or IO locally, they can use the free TwinCAT CP variant to develop an ADS client.
Include header files
To use the functionality of TcAdsDll.dll in a project, the header files TcAdsApi.h and TcAdsDef.h must be added to the project.
#include "C:\TwinCAT\AdsApi\TcAdsDll\Include\TcAdsDef.h"
#include "C:\TwinCAT\AdsApi\TcAdsDll\Include\TcAdsApi.h"
Add library to the project
To use the functionality of the TcAdsDll, the TcAdsDll.lib must be included.
In Visual Studio, the menu item "Project Properties" must be selected. In the "Project Properties" dialog, select the "Configuration Properties\Linker\Input" area. To include the library, the path of the TcAdsDll.lib must be entered in the "Additional Dependencies" text box.
