cmclglobal.cpp

来自「window下的多线程编程参考书。值得一读」· C++ 代码 · 共 25 行

CPP
25
字号
//
// FILE: CMclGlobal.cpp
//
// Copyright (c) 1997 by Aaron Michael Cohen
//
/////////////////////////////////////////////////////////////////////////

#include "CMclGlobal.h"

void CMclInternalThrowError( DWORD dwStatus, LPCTSTR lpFilename, int line) {
#ifdef _DEBUG
    // print the error for debug builds...
    TCHAR string[2*MAX_PATH];
    wsprintf( string, "CMcl Library Win32 Error 0x%08x(%d) at %s line %d\n", 
                dwStatus, dwStatus, lpFilename, line);        
    OutputDebugString(string);
#endif

#if __CMCL_THROW_EXCEPTIONS__
    // throw exception for fatal errors...
    throw dwStatus;
#endif
}

⌨️ 快捷键说明

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