⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bvcexception.cpp

📁 BCAM 1394 Driver
💻 CPP
字号:
//-----------------------------------------------------------------------------
//  (c) 2002 by  Basler Vision Technologies
//  Section:  Vision Components
//  Project:  BVC
//  $Header: BvcException.cpp, 3, 25.09.2003 12:36:45, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
  \file     BvcException.cpp

  \brief   Implemention of class BvcException
*/
#include "stdafx.h"
#include <BvcError.h>
#include "BvcException.h"

using namespace Bvc;

const CString BvcException::m_LibraryFile = _T( "BvcError.dll" );

//------------------------------------------------------------------------------
// BvcException::BvcException( ErrorNumber e, CString context, va_list *pArgs): m_Error( e ), m_Description( "<no error message available>" ), m_Context( context )
// Author: 
//------------------------------------------------------------------------------
/**
* \brief Constructs a new object.
*
* \param     e The error code.
* \param     context The context string, describing the circumstances of the exception.
* \param     *pArgs Pointer to a list of arguments
*/
//------------------------------------------------------------------------------
BvcException::BvcException( ErrorNumber e,  CString context, va_list *pArgs)
: Exception( e, context, true )
{
  FormatMessage( m_LibraryFile, (char**)pArgs );
}

//------------------------------------------------------------------------------
// BvcException::BvcException( ErrorNumber e, CString context , PVOID pArg ) 
// Author: Hartmut Nebelung
//------------------------------------------------------------------------------
/**
* \overload
* \brief Constructs a new object
*
* \param     e The error code.
* \param     context The context string, describing the circumstances of the exception.
* \param     lpArgs Pointer to a single argument
*/
//------------------------------------------------------------------------------
BvcException::BvcException( ErrorNumber e, CString context , PVOID pArg  ) 
: Exception( e, context, true )
{
  FormatMessage( m_LibraryFile, (char**) pArg );
};



⌨️ 快捷键说明

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