MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > MultiCam Basics > Classes > Class Instantiation > Creation Function

Creation Function

The creation function exists in two flavors.

"By-handle" prototype

MCSTATUS McCreate (
  MCHANDLE Model,
  PMCHANDLE Instance
);

"By-name" prototype

MCSTATUS McCreateNm (
  PCCHAR ModelName,
  PMCHANDLE Instance
);

Item

Type

Description

McCreate
MCCreateNm

MCSTATUS

MultiCam API function.

Model

MCHANDLE

Argument designating the creation model.

ModelName

PCCHAR

Argument pointing to a string representing the creation model.

Instance

PMCHANDLE

Argument designating the newly created instance.

Return Value

MCSTATUS

MC_OK or error code.

The creation model is an item depending on the object class.