CreateLink Method
Creates a symbolic link to another file in the vault.
Syntax
int CreateLink(const QString& qsLinkName, const QString& qsDestinationName);
Remarks
This method creates a new symbolic link named LinkName that points to the file specified by DestinationName.
The value passed for LinkName must be a vault-local absolute path. The value passed for DestinationName must also be a vault-local path, but may be absolute or relative to LinkName.
Note: This method can only be called when Active is true, and cannot be called within events.
Error Handling
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)