useipl.cpp

来自「数字滤波函数」· C++ 代码 · 共 56 行

CPP
56
字号
//-----------------------------------------------------------------------------
//  (c) 2002 by Basler Vision Technologies
//  Section:  Vision Components
//  Project:  BCAM
//  $Header: UseIPL.cpp, 3, 9/16/02 10:28:23 AM, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
  \file     UseIPL.cpp
  \brief    Main source file for UseIPL.exe
*/

#include "stdafx.h"

#include "resource.h"

#include "MainFrame.h"
#include "BitmapView.h"

//! The one and only application module
CAppModule _Module;

//! The function running the message loop
int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT)
{
  CMessageLoop theLoop;
  _Module.AddMessageLoop(&theLoop);
  
  CMainFrame wndMain;
  
  HANDLE hRes = wndMain.CreateEx();
  ATLASSERT(hRes != NULL);
  
  wndMain.ShowWindow(nCmdShow);
  
  int nRet = theLoop.Run();
  
  _Module.RemoveMessageLoop();
  return nRet;
}

//! Windows entry function
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
  
  ::InitCommonControls();
  
  long hRes = _Module.Init(NULL, hInstance);
  ATLASSERT(SUCCEEDED(hRes));
  
  int nRet = Run(lpstrCmdLine, nCmdShow);
  
  _Module.Term();
  
  return nRet;
}

⌨️ 快捷键说明

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