Changeset 689


Ignore:
Timestamp:
12/2/2008 8:17:23 AM (5 years ago)
Author:
lowjoel
Message:

Move CEraserCtxMenuApp to the header; we need it to get the module instance handle (the Afx* functions return NULL?)

Location:
branches/erasershellext/cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/erasershellext/cpp/dllmain.cpp

    r683 r689  
    77 
    88CEraserCtxMenuModule _AtlModule; 
    9  
    10 class CEraserCtxMenuApp : public CWinApp 
    11 { 
    12 public: 
    13  
    14 // Overrides 
    15     virtual BOOL InitInstance(); 
    16     virtual int ExitInstance(); 
    17  
    18     DECLARE_MESSAGE_MAP() 
    19 }; 
     9CEraserCtxMenuApp theApp; 
    2010 
    2111BEGIN_MESSAGE_MAP(CEraserCtxMenuApp, CWinApp) 
    2212END_MESSAGE_MAP() 
    23  
    24 CEraserCtxMenuApp theApp; 
    2513 
    2614BOOL CEraserCtxMenuApp::InitInstance() 
  • branches/erasershellext/cpp/dllmain.h

    r441 r689  
    88}; 
    99 
    10 extern class CEraserCtxMenuModule _AtlModule; 
     10class CEraserCtxMenuApp : public CWinApp 
     11{ 
     12public: 
     13    virtual BOOL InitInstance(); 
     14    virtual int ExitInstance(); 
     15 
     16    DECLARE_MESSAGE_MAP() 
     17}; 
     18 
     19extern CEraserCtxMenuModule _AtlModule; 
     20extern CEraserCtxMenuApp theApp; 
Note: See TracChangeset for help on using the changeset viewer.