ITcPlcIECProject6::SaveAsLibrary2

Saves the project as a library, optionally encrypted (if software protection is enabled) and optionally installed in the active profile.

Signature

HRESULT SaveAsLibrary2([in] BSTR bstrLibraryPath, [in, defaultvalue(0)] VARIANT_BOOL bEncrypt, [in, defaultvalue(0)] VARIANT_BOOL binstall);

Parameter

Name

Type

Description

bstrLibraryPath

BSTR

[in] Full path to the library to be created.

bEncrypt

VARIANT_BOOL

[in, defaultvalue(0)] VARIANT_TRUE encrypts the library (only if software protection is enabled).

binstall

VARIANT_BOOL

[in, defaultvalue(0)] VARIANT_TRUE installs the library into the active profile after it is created.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes