A3DDllInitialize

A3DStatus A3DDllInitialize(A3DInt32 iMajorVersion, A3DInt32 iMinorVersion)
A3DStatus A3DDllInitialize(A3DInt32 iMajorVersion, A3DInt32 iMinorVersion)

Starts a session with the library.

This function initializes the internal structures in the library.

Sample code

A3DInt32iErr=A3D_SUCCESS;
A3DInt32iMajorVersion=0,iMinorVersion=0;

iErr=A3DDllGetVersion(&iMajorVersion,&iMinorVersion);
if(iMajorVersion!=A3D_DLL_MAJORVERSION)

iErr=A3D_ERROR;

elseif(iMinorVersion<A3D_DLL_MINORVERSION)

iErr=A3D_ERROR;



if(iErr==A3D_SUCCESS)
{
iErr=A3DDllInitialize(A3D_DLL_MAJORVERSION,A3D_DLL_MAJORVERSION);
if(iErr==A3D_SUCCESS)
{
/*Insertyourowncodetocreate/readmodels*/
/*...*/
/*Atendofprocess,terminatetheDLLuse*/
iErr=A3DDllTerminate();
}
}

Parameters

iMajorVersion: The major version of the HOOPS Exchange. Set this value to``A3D_DLL_MAJORVERSION``

iMinorVersion: The minor version of the HOOPS Exchange. Set this value to``A3D_DLL_MINORVERSION``

Returns

A3D_SUCCESSon success, or an error code on failure