Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01

Question: I would like to write some specialised C code and be able to call this code from Citect. Can I call a Windows DLL from Citect? 

Yes, you can call any Windows DLLs from Cicode. This functionality is provided with all versions of Citect, however it is not documented in the standard documentation. (Because it is an advanced feature that if used incorrectly can cause problems.) It is documented in the Citect Toolkit that may be purchased separately. The following functions enable you to call DLLs.

DLLCall Calls a DLL function.
DLLClose Closes a link to a DLL function.
DLLOpen Opens a link to a DLL function.

The DLL functions are documented in Citect version 3.x and later. The Citect Toolkit is no longer available.