|
[code]static AFX_EXTENSION_MODULE arxmfcDLL ;
extern BOOL InitModule (HINSTANCE hInstance, DWORD dwReason, LPVOID) {
if ( dwReason == DLL_PROCESS_ATTACH ) {
if ( !AfxInitExtensionModule (arxmfcDLL, hInstance) )
return (0) ;
new CDynLinkLibrary (arxmfcDLL) ;
} else if ( dwReason == DLL_PROCESS_DETACH ) {
AfxTermExtensionModule (arxmfcDLL) ;
}
return (1) ;
}[/code] |
|