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)] |
|
binstall |
VARIANT_BOOL |
[in, defaultvalue(0)] |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
DanglingAdapterException: Adapter not connected. -
ArgumentException: The file already exists, has an invalid extension (≠.library/.compiled-library), orbEncryptis specified but encryption is not available.