Applies To:
  • CitectSCADA 5.00

I am trying to access functions in Ctapi.dll from my application which is written in Visual Basic, but I get a "Bad calling convention" error. Is this supposed to work? 

CIT has confirmed this to be a problem in Citect for Windows version 5.00. It may also prevent people using Delphi from accessing functions in Ctapi. At present, only people writing external applications in C or C++ can properly use these exported functions.

This problem has been fixed in version 5.00 Service Pack D and Version 5.01.

Programs that currently use ctAPI will need to be recompiled to be used with the updated version shipped with these products.