DllEntry.cpp File Reference

From DllEntry / xfrefutil

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DllEntry.cpp File Reference

Go to the source code of this file.

Functions

ClassDesc2* GetXrefutilDesc ()
BOOL WINAPI DllMain (HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
 __declspec ( dllexport ) const TCHAR* LibDescription()
 __declspec ( dllexport ) int LibNumberClasses()
TCHAR* GetString (int id)

Variables

HINSTANCE hInstance
int controlsInit = FALSE

Function Documentation

BOOL WINAPI DllMain ( HINSTANCE hinstDLL,
ULONG fdwReason,
LPVOID lpvReserved )
 

Definition at line 26 of file DllEntry.cpp.

00027 {
00028     hInstance = hinstDLL;               // Hang on to this DLL's instance handle.
00029 
00030     if (!controlsInit) {
00031         controlsInit = TRUE;
00032         InitCustomControls(hInstance);  // Initialize MAX's custom controls
00033         InitCommonControls();           // Initialize Win95 controls
00034     }
00035             
00036     return (TRUE);
00037 }

TCHAR * GetString ( int id )
 

Definition at line 70 of file DllEntry.cpp.

Referenced by Xrefutil::BeginEditParams(), XrefutilClassDesc::Category(), XrefutilClassDesc::ClassName(), Xrefutil::ConvertSelectedToXrefObject(), Xrefutil::ConvertSelectedToXrefScene(), and __declspec().

00071 {
00072     static TCHAR buf[256];
00073 
00074     if (hInstance)
00075         return LoadString(hInstance, id, buf, sizeof(buf)) ? buf : NULL;
00076     return NULL;
00077 }

ClassDesc2 * GetXrefutilDesc ( )
 

Definition at line 60 of file xrefutil.cpp.

00061 {
00062     return &XrefutilDesc;
00063 }

__declspec ( dllexport )
 

Definition at line 48 of file DllEntry.cpp.

00049 {
00050     return 1;
00051 }

__declspec ( dllexport ) const
 

Definition at line 41 of file DllEntry.cpp.

00042 {
00043     return GetString(IDS_LIBDESCRIPTION);
00044 }


Variable Documentation

int controlsInit = FALSE
 

Definition at line 18 of file DllEntry.cpp.

HINSTANCE hInstance
 

Definition at line 17 of file DllEntry.cpp.


Generated at Mon Nov 6 14:11:58 2000 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000