Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

ctSetManagedBinDirectory

  • Last UpdatedJul 13, 2023
  • 1 minute read

Allows a CTAPI consumer to specify from where it will load certain CTAPI dependencies (.NET managed dependencies).

Typically, this would be the Plant SCADA Bin directory (for example, C:\Program Files (x86)\AVEVA Plant SCADA\Bin). This is only required when the dependencies are not located in the same directory as the consuming application, see Running CTAPI Applications in the topic CtAPI for more details.

This function takes a single string containing a path. Calling this multiple times is safe. If a different path is specified it will replace the previous path; if the same path is specified then nothing will happen.

If called with a NULL or empty string, then any previous path will be removed and the default search order will be used.

Syntax

ctSetManagedBinDirectory(sPath)

sPath

Type: LPCSTR
Input/output: Input
Description: A path representing the location of the CTAPI managed dependencies.

Return Value

The function will return TRUE if successful.

The function will return FALSE if passed an invalid path, a path that does not exist, or a path that specifies a file instead of a directory.

This function should be called before ctOpen.

In This Topic
TitleResults for “How to create a CRG?”Also Available in