gui_config.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
源码类别:

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: gui_config.cpp,v $
  4.  * PRODUCTION Revision 1000.0  2003/10/28 19:17:22  gouriano
  5.  * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. /*  $Id: gui_config.cpp,v 1000.0 2003/10/28 19:17:22 gouriano Exp $
  10.  * ===========================================================================
  11.  *
  12.  *                            PUBLIC DOMAIN NOTICE
  13.  *               National Center for Biotechnology Information
  14.  *
  15.  *  This software/database is a "United States Government Work" under the
  16.  *  terms of the United States Copyright Act.  It was written as part of
  17.  *  the author's official duties as a United States Government employee and
  18.  *  thus cannot be copyrighted.  This software/database is freely available
  19.  *  to the public for use. The National Library of Medicine and the U.S.
  20.  *  Government have not placed any restriction on its use or reproduction.
  21.  *
  22.  *  Although all reasonable efforts have been taken to ensure the accuracy
  23.  *  and reliability of the software and data, the NLM and the U.S.
  24.  *  Government do not and cannot warrant the performance or results that
  25.  *  may be obtained by using this software or data. The NLM and the U.S.
  26.  *  Government disclaim all warranties, express or implied, including
  27.  *  warranties of performance, merchantability or fitness for any particular
  28.  *  purpose.
  29.  *
  30.  *  Please cite the author in any work or product based on this material.
  31.  *
  32.  * ===========================================================================
  33.  *
  34.  * Authors:  Mike DiCuccio, Anatoliy Kuznetsov, Denis Vakatov
  35.  *
  36.  * File Description:
  37.  *    DllMain() - entry point for Win32 DLLs.
  38.  */
  39. #include "stdafx.h"
  40. #include <afxdllx.h>
  41. #ifdef _DEBUG
  42. #define new DEBUG_NEW
  43. #undef THIS_FILE
  44. static char THIS_FILE[] = __FILE__;
  45. #endif
  46. static AFX_EXTENSION_MODULE Gui_utilsDLL = { NULL, NULL };
  47. extern "C" int APIENTRY
  48. DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  49. {
  50. // Remove this if you use lpReserved
  51. UNREFERENCED_PARAMETER(lpReserved);
  52. if (dwReason == DLL_PROCESS_ATTACH)
  53. {
  54. TRACE0("GUI_UTILS.DLL Initializing!n");
  55. // Extension DLL one-time initialization
  56. if (!AfxInitExtensionModule(Gui_utilsDLL, hInstance))
  57. return 0;
  58. // Insert this DLL into the resource chain
  59. // NOTE: If this Extension DLL is being implicitly linked to by
  60. //  an MFC Regular DLL (such as an ActiveX Control)
  61. //  instead of an MFC application, then you will want to
  62. //  remove this line from DllMain and put it in a separate
  63. //  function exported from this Extension DLL.  The Regular DLL
  64. //  that uses this Extension DLL should then explicitly call that
  65. //  function to initialize this Extension DLL.  Otherwise,
  66. //  the CDynLinkLibrary object will not be attached to the
  67. //  Regular DLL's resource chain, and serious problems will
  68. //  result.
  69. new CDynLinkLibrary(Gui_utilsDLL);
  70. }
  71. else if (dwReason == DLL_PROCESS_DETACH)
  72. {
  73. TRACE0("GUI_UTILS.DLL Terminating!n");
  74. // Terminate the library before destructors are called
  75. AfxTermExtensionModule(Gui_utilsDLL);
  76. }
  77. return 1;   // ok
  78. }
  79. /*
  80.  * ===========================================================================
  81.  * $Log: gui_config.cpp,v $
  82.  * Revision 1000.0  2003/10/28 19:17:22  gouriano
  83.  * PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1
  84.  *
  85.  * Revision 1.1  2003/10/10 18:58:15  dicuccio
  86.  * Initial revision
  87.  *
  88.  * Revision 1.3  2003/01/16 18:16:39  dicuccio
  89.  * Restored AppWizard-generated code - turns out to be needed after all...
  90.  *
  91.  * Revision 1.1  2002/12/19 15:06:13  dicuccio
  92.  * Initial revision.
  93.  *
  94.  * ===========================================================================
  95.  */