UpdateLicense Method

Description

This method updates the PASSPORT Host Integration license code.
 

Applies To Objects

Sessions
 

Syntax

Sessions.UpdateLicense( licensecode )
 

Parameters

Parameter
Description
licensecode
License code.
 

Return Values

One of the following strings is returned describing whether the update is successful or not:

String Value
"Thank you for purchasing PASSPORT Host Integration Objects."
"This software will expire on mm-dd-yyyy."
"Invalid Serial Code."
"Expired Serial Code."
"Failed to write to passhio.key."
 

Sample VB Code

Dim AllSessions As OhioSessions

Set AllSessions = New OhioSessions

strResult = AllSessions.UpdateLicense("1234-1234-1234-1234")

MsgBox "UpdateLicense = " & strResult

 

 

Sample C++ Code

IOhioSessions AllSessions;

if ( AllSessions.CreateDispatch(CLSID_OhioSessions) )
{      

CString strResult = AllSessions.UpdateLicense( "1234-1234-1234-1234" );

TRACE( "UpdateLicense = %s\n", strResult );

}

 

Sample C# Code

try

{

PASSHIOLib.OhioSessions AllSessions;

String strResult;

AllSessions = new PASSHIOLib.OhioSessionsClass ();

strResult = AllSessions.UpdateLicense ("1234-1234-1234-1234");

MessageBox.Show (strResult);

}

catch (Exception ex)

{

MessageBox.Show ("Exception: " + ex);

}