Applies To:
  • CitectSCADA 5.xx

We have a problem with using CTAPI to access Citect data from a program written in C. The Citect version is 5.40, no service packs applied. I have ctapi.h, ctapi.lib and ctapi.dll in c:\citect\bin, as per the instructions in the Citect help file. The C compiler is Microsoft Visual C++ version 5.0.

I have written a small program which contains calls to ctOpen and ctClose, and I've added c:\citect\bin\ctapi.lib to the list of object libraries to be searched by the link step of Visual C++. The problem is that the link step produces the following error message:

c:\citect\bin\ctapi.lib : fatal error LNK1106: invalid file or disk full:

cannot seek to 0x3b3a8ec0

What is causing this problem?


The CTAPI.LIB file was created using Microsoft Visual Studio Version 6.0. The LIB file format is different between Microsoft Visual Studio 6.0 and 5.0, so you will have to build your application using version 6.0