RND_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 
00007 /* file rnd_res.c resource only DLL for Renderer */
00008 /* this DLL doesn't have to DO anything at all   */
00009 /* It just returns a handle to the resources so  */
00010 /* that the main program can use them for menus  */
00011 /* dialog boxes strings bitmaps etc.             */
00012 
00013 #include <windows.h>
00014 
00015 static HINSTANCE hInstance;
00016 
00017 #if __WATCOMC__
00018 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00019 #else
00020 int APIENTRY DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00021 #endif
00022   static BOOL unregister=TRUE;
00023   switch (dwReason) {
00024     case DLL_PROCESS_ATTACH: {
00025       hInstance=hDLL;
00026 //    MessageBox (GetFocus(),"Resource","Process attaching",MB_OK|MB_SYSTEMMODAL);
00027       break;
00028     }
00029     case DLL_PROCESS_DETACH:
00030 //    MessageBox (GetFocus(),"Resource","Process detaching",MB_OK|MB_SYSTEMMODAL);
00031       break;
00032   }
00033   return (int)TRUE;
00034 }
00035 
00036 HINSTANCE ResourceX(void){
00037  return hInstance;
00038 }

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