Dependencies for CTAPI.DLL

Hello--

I am trying to use my Citect installation with MatrikonOPCforCitect.  It uses CTAPI.DLL library. I am getting a 126 windows dll load file error.

Are there files/resources that I need to bring along with CTAPI.DLL in order for it to be used? The Matrikon server works fine when installed locally with citect, but produces the error when ran on an external server with the CTAPI.DLL copied over.

  • CtAPI Functions | Extensibility in the help covers the files that need to be added (ctapi.h, ctapi.lib).  It also covers where they need to be installed, and where to find them.

  • The following files are required for CtAPI applications that can be copied from the Bin directory of 7.50 installation:

    • CTAPI.dll
    • CT_IPC.dll
    • CTENG32.dll
    • CTRES32.dll
    • CTUTIL32.dll
    • CIDEBUGHELP.dll
    • CTUTILMANAGEDHELPER.dl

    Although CtAPI components are maintained backward compatibility, you may have to use the same version of CtAPI components in your CtAPI client as SCADA version. In addition, the CtAPI security has been enhanced in each release since v7.50, for instance, the Windows integrated security is supported in a CtAPI client of v8.30. As a result, the list of CtAPI components will increase because of the required dependents. So what is your version of SCADA?

  • Thank you both for the responses.

    I should have provided the version. It is 7.5 SP1 Patch 38. I did copy the DLLs directly from the Citect server it will be talking to.  I got all DLLs listed, but did not include CTUTILMANAGERHELPER.dll. I will include it.

    In my case, should all DLLs come from the 32 bit bin folder or should they come from the 64 bit folder, even if the alarm server is ran in 64 bit via ExtendedMemory=TRUE?

    Also, on looking at the help, I see it has two notes pointing at the install DVD as necessary:

    -ISSetupPrerequisites\Microsoft Visual Studio 2012 C++ Redistributable

    -ISSetupPrerequisites\Microsoft .NET Framework 4.5.1

    I see Microsoft .NET Framework 4.5.1, but I do not see the other.

  • 32 or 64 bit depends on your operating system - if you are running the alarm server at 64 bit, you must have a 64 bit system.

    I can't imagine that the -ISSetupPrerequisites\Microsoft Visual Studio 2012 C++ Redistributable is not on the disk, but a quick google search shows i available by Microsoft.  It would have been installed with the Citect install on the host machine.

  • Yep, you're right, it's there. Thank you.