DES_RES.C

Go to the documentation of this file.
00001 /* --
00002 OpenFX version 2.0 - Modelling, Animation and Rendering Package
00003 Copyright (C) 2000 - 2007 OpenFX Development Team
00004 -- */
00005 
00006 /* file des_res.c resource only DLL for Designer */
00007 
00008 #include <windows.h>
00009 
00010 static HINSTANCE hInstance;
00011 
00012 #if __WATCOMC__
00013 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00014 #else
00015 int APIENTRY DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00016 #endif
00017   static BOOL unregister=TRUE;
00018   switch (dwReason) {
00019     case DLL_PROCESS_ATTACH: {
00020       hInstance=hDLL;
00021 //    MessageBox (GetFocus(),"Resource","Process attaching",MB_OK|MB_SYSTEMMODAL);
00022       break;
00023     }
00024     case DLL_PROCESS_DETACH:
00025 //    MessageBox (GetFocus(),"Resource","Process detaching",MB_OK|MB_SYSTEMMODAL);
00026       break;
00027   }
00028   return (int)TRUE;
00029 }
00030 
00031 HINSTANCE ResourceX(void){
00032  return hInstance;
00033 }

Generated on Sun Apr 27 14:20:10 2014 for OpenFX by  doxygen 1.5.6