VLScgSetCodegenVersion

Syntax

int VLScgSetCodegenVersion (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument Description
iHandle

The instance handle for this library

codeP

The pointer to the codeT struct

flag

Sets the values of version_num

Description

Sets the version of license codes to generate. Checks if the current license code setting allow multiple features.

NOTE   This should be the first API in the sequence of API that are called for setting license attributes; because it impacts all aspect of license generation.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLScg_INVALID_INT_TYPE

If value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds MAX_CODEGEN_VERSION.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .