3ds Max C++ API Reference
Required Plug-in DLL Functions

Plug-in DLLs must implement and export a number of functions in order to load and work properly in 3ds Max. More...

Typedefs

typedef const ULONG(* LibVersionProcPtr) ()
 Pointer to a function with the following signature: ULONG LibVersion(). More...
 
typedef const MCHAR *(* LibDescriptionProcPtr) ()
 Pointer to a function with the following signature: const MCHAR* LibDescription(). More...
 
typedef int(* LibNumberClassesProcPtr) ()
 Pointer to a function with the following signature: int LibNumberClasses(). More...
 
typedef ClassDesc *(* LibClassDescProcPtr) (int i)
 Pointer to a function with the following signature: ClassDesc* LibClassDesc(int) Returns the i-th class descriptor (ClassDesc derived object). More...
 

Detailed Description

Plug-in DLLs must implement and export a number of functions in order to load and work properly in 3ds Max.

The following types represent pointers to these functions.

Typedef Documentation

◆ LibVersionProcPtr

typedef const ULONG(* LibVersionProcPtr) ()

Pointer to a function with the following signature: ULONG LibVersion().

LibVersion() must return the VERSION_3DSMAX pre-defined constant which encodes the version of 3ds Max the plug-in is compatible with. This allows 3ds Max to identify obsolete plug-in DLLs.

◆ LibDescriptionProcPtr

typedef const MCHAR*(* LibDescriptionProcPtr) ()

Pointer to a function with the following signature: const MCHAR* LibDescription().

Returns a string that describes the plug-in DLL.

◆ LibNumberClassesProcPtr

typedef int(* LibNumberClassesProcPtr) ()

Pointer to a function with the following signature: int LibNumberClasses().

Returns the number of plug-in classes (number of ClassDesc derived objects) this plug-in Dll exposes.

◆ LibClassDescProcPtr

typedef ClassDesc*(* LibClassDescProcPtr) (int i)

Pointer to a function with the following signature: ClassDesc* LibClassDesc(int) Returns the i-th class descriptor (ClassDesc derived object).

See class ClassDesc and ClassDesc2 for more information.