ANI_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 ANI_RES>C resource only DLL for Animator
00007    the function simply returns a HANDLE that the
00008    main program can use to load resources from this DLL */
00009 
00010 #include <windows.h>
00011 
00012 static HINSTANCE hInstance;
00013 
00014 #if __WATCOMC__
00015 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00016 #else
00017 int APIENTRY DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00018 #endif
00019   static BOOL unregister=TRUE;
00020   switch (dwReason) {
00021     case DLL_PROCESS_ATTACH: {
00022       hInstance=hDLL;
00023 //    MessageBox (GetFocus(),"Resource","Process attaching",MB_OK|MB_SYSTEMMODAL);
00024       break;
00025     }
00026     case DLL_PROCESS_DETACH:
00027 //    MessageBox (GetFocus(),"Resource","Process detaching",MB_OK|MB_SYSTEMMODAL);
00028       break;
00029   }
00030   return (int)TRUE;
00031 }
00032 
00033 HINSTANCE ResourceX(void){
00034  return hInstance;
00035 }

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