#include "Importer.h" HINSTANCE hInstance; int controlsInit = FALSE; BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved) { hInstance = hinstDLL; // Hang on to this DLL's instance handle. if (!controlsInit) { controlsInit = TRUE; //InitCustomControls(hInstance); // Initialize MAX's custom controls InitCommonControls(); // Initialize Win95 controls } return (TRUE); } __declspec( dllexport ) const TCHAR* LibDescription() { return _T("LibDescription"); } //TODO: Must change this number when adding a new class __declspec( dllexport ) int LibNumberClasses() { return 1; } ClassDesc *GetSceneImportDesc(); __declspec( dllexport ) ClassDesc* LibClassDesc(int i) { switch(i) { case 0: return GetSceneImportDesc(); default: return 0; } } __declspec( dllexport ) ULONG LibVersion() { return VERSION_3DSMAX; }