newspeoplefor developersdocumentationdownloads

nmaxdll.cc File Reference

#include "base/nmaxdll.h"
#include "kernel/nwin32loghandler.h"

Go to the source code of this file.


Functions

BOOL WINAPI DllMain (HINSTANCE hinstDLL, ULONG fdwReason, LPVOID lpvReserved)
 the dll entry funtion, called from the automatic added static init function
ClassDesc * LibClassDesc (int i)
 return the i'th class description of the published classes to max
int LibNumberClasses ()
 return the number of classes in this plugin that are published to max
const TCHAR * LibDescription ()
 return the desciption of this plugin
ULONG LibVersion ()
 return the max version this plugin is compiled for
ULONG CanAutoDefer ()
 return if plugin can be loaded on demand

Variables

HINSTANCE hInstance
 the dllHandle
int controlsInit = FALSE
 have we already initiated the custom controlls?
nKernelServerkernelServer = 0
 Kernel server instance.

Function Documentation

BOOL WINAPI DllMain HINSTANCE  hinstDLL,
ULONG  fdwReason,
LPVOID  lpvReserved
 

the dll entry funtion, called from the automatic added static init function

the dll entry funtion, this is called after init of the static vars

Definition at line 128 of file nmaxdll.cc.

ClassDesc* LibClassDesc int  i  ) 
 

return the i'th class description of the published classes to max

give max the i'th class decription

Definition at line 197 of file nmaxdll.cc.

int LibNumberClasses  ) 
 

return the number of classes in this plugin that are published to max

tell max the number classes, public to max in this dll

Definition at line 210 of file nmaxdll.cc.

const TCHAR* LibDescription  ) 
 

return the desciption of this plugin

return desription of this dll

Definition at line 223 of file nmaxdll.cc.

ULONG LibVersion  ) 
 

return the max version this plugin is compiled for

return version of max that plugin is compiled for

Definition at line 234 of file nmaxdll.cc.

ULONG CanAutoDefer  ) 
 

return if plugin can be loaded on demand

from MAXSDK: It is possible to indicate to 3ds max that certain plug-ins should not be loaded at startup. Each deferred plug-in will be loaded when and if needed, which will happen when one or more of the 3ds max classes implemented by the plug-in is actually created. It might also happen when detailed information about the plug-in is requested. The principal benefit of deferral is that the Windows resources used by the plug-in will not be consumed unless there is some specific use or interrogation of the plug-in. Time taken at startup to load the plug-in, assign its virtual memory, etc. is also saved, or at least deferred. 1 - can 0 - can not

Definition at line 254 of file nmaxdll.cc.


Variable Documentation

HINSTANCE hInstance
 

the dllHandle

Definition at line 10 of file nmaxdll.cc.

int controlsInit = FALSE
 

have we already initiated the custom controlls?

Definition at line 13 of file nmaxdll.cc.

nKernelServer* kernelServer = 0
 

Kernel server instance.

Definition at line 16 of file nmaxdll.cc.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.