Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
12-5
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 12      Helper Classes
Arg Class
CreateInstance
The CreateInstance method creates an object of type Arg class and sets the 
reference count of the object to 1. It is important to release the object when it is 
no longer in use in the program.
Syntax
C++:
static Arg& CreateInstance(); // static creation mechanism.
static Arg& CreateInstance(Arg& arg); // static creation mechanism.
static bool CreateInstance(Arg ** arg); // static creation mechanism,
// alternate version
COM: 
Wrapped by CoCreateInstance 
VB:
Wrapped by New 
Java, .NET:
 Not available
Parameters
arg
(output) Pointer to the newly created Arg.
Return Values
COM: Default HRESULT return values. See 
Others: Either a reference to the newly created Arg or a boolean indicating 
method success. If the methods not returning bool are unsuccessful, they will raise 
a CCtiosException with iCode set to 
E_CTIOS_ARGUMENT_ALLOCATION_FAILED.
Remarks
Internally this method increments the Arg’s reference count, so do not call 
AddRef(). However, you must call Release() after you are finished with the Arg.