bcamprogguide.cpp

来自「BCAM 1394 Driver」· C++ 代码 · 共 53 行

CPP
53
字号
//-----------------------------------------------------------------------------
//  (c) 2002 by Basler Vision Technologies
//  Section:  Vision Components
//  Project:  BCAM
//  $Header: BcamProgGuide.cpp, 2, 19.09.2002 14:47:00, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
  \file     BcamProgGuide.cpp
  \brief    main source file for BcamProgGuide.exe
*/

#include "stdafx.h"

#include "resource.h"

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

CAppModule _Module;

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;
}

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 + -
显示快捷键?