# 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_SUCCESS`on success, or an error code on failure

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...