savemapdocument.cpp

来自「好不容易找到的用多种语言写的ArcGisEngine二次开发程序」· C++ 代码 · 共 48 行

CPP
48
字号
// SaveMapDocument.cpp : Implementation of WinMain


// Note: Proxy/Stub Information
//      To build a separate proxy/stub DLL, 
//      run nmake -f SaveMapDocumentps.mk in the project directory.

#include "stdafx.h"
#include "resource.h"
#include "SaveMap.h"


// This is not a COM module but we need this to ensure ATL will pick up the resource instance
CComModule _Module;


/////////////////////////////////////////////////////////////////////////////
//
extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, 
                      HINSTANCE hPrevInstance,
                      LPTSTR lpCmdLine,
                      int nShowCmd)
{
  ::CoInitialize(NULL);
  _Module.Init(NULL, hInstance);

  // make sure all COM pointers are released (inside CLoadMap) before CoUninitialize is called
  {

		CSaveMap dlg;			//create an instance of the class
		dlg.Create(NULL); //create the main window, the NULL
											//means it will be the main window
	
		dlg.ShowWindow(SW_SHOWNORMAL); //show it

    // Main message loop:
    MSG msg; 
    while (GetMessage(&msg, 0, 0, 0))
    {
      TranslateMessage(&msg);
      DispatchMessage(&msg);
    }
  }

  CoUninitialize();
  return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?