C_ObjectCalled

Call C_ObjectCalled to find the object handle and object type of a named object,

void C_ObjectCalled(

TOrcFxAPIHandle ModelHandle,

LPCTSTR lpObjectName,

TObjectInfo *lpObjectInfo,

int *lpStatus

);

Parameters

ModelHandle (IN)

The handle of the model which contains the named object.

lpObjectName (IN)

Points to a null-terminated string containing the name of the object. To find the handle of the General object use "General" and to find the handle of the environment object use "Environment".

lpObjectInfo (OUT)

Points to a TObjectInfo data structure in which the object handle, object type (and the object name) are returned.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Unicode and ANSI

The Unicode function name is C_ObjectCalledW and the ANSI function name is C_ObjectCalledA.

See also

TObjectInfo.