Class DllDesc

3DS Max Plug-In SDK

Class DllDesc

See Also: Class DllDir, Class ClassDesc, Class Interface, DLL Functions and Class Descriptors.

class DllDesc

Description:

This class is available in release 2.0 and later only.

This class provides information about a DLL. Every DLL in 3ds max may implement any number of classes. This class has methods which return the number of classes implemented in the DLL, a description string for the DLL, and a method to unmap the DLL from memory.

All methods of this class are implemented by the system.

Data Members:

public:

HINSTANCE handle;

The DLL instance handle.

TSTR fname;

The file name the DLL was loaded from.

Methods:

Prototype:

const TCHAR *Description();

Remarks:

Returns the Description defined in the LibDescription() function.

Prototype:

int NumberOfClasses();

Remarks:

Returns the number of classes implemented in the DLL. This is the value returned by the library function LibNumberClasses().

Prototype:

void Free();

Remarks:

This method decrements the reference count of the DLL. When the reference count reaches zero, the module is unmapped from the address space of the calling process.

Operators:

Prototype:

ClassDesc *operator[](int i);

Remarks:

Returns a pointer to the 'i-th' class descriptor.

Parameters:

int i

The zero based index of the ClassDesc to return.

Prototype:

int operator==(const DllDesc& dd) const;

Remarks:

Equality operator. Returns nonzero if the DllDesc passed matches this one; otherwise zero.