mixoexception.h

来自「miXo is a buzz machine (www.buzzmachines」· C头文件 代码 · 共 41 行

H
41
字号
//$Id: MiXoException.h,v 1.1 2001-05-08 17:08:58+02 mimo Exp mimo $
// MidiException.h: interface for the CMidiException class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MIDIEXCEPTION_H__D253F227_3127_11D5_8DCF_D18060867A3C__INCLUDED_)
#define AFX_MIDIEXCEPTION_H__D253F227_3127_11D5_8DCF_D18060867A3C__INCLUDED_
#ifdef _DEBUG
#pragma once
#pragma warning( disable : 4786 )
#endif //_DEBUG
#include "stdafx.h"
#include <mmsystem.h>
#include <exception>
#include <string>
using namespace std;
class CMiXoException : public exception  
{
	string scMessage;
	UINT id;
public:
	enum eMiXoExceptionEnum{
		me_undef=0,
		me_DuplicateKeyDefName,
		me_DuplicateTrackName
	};
	CMiXoException(const char*sz,unsigned u) throw() : exception(),scMessage(sz),id(u) {} ;
	CMiXoException(const char*sz) throw() : exception(),scMessage(sz),id(me_undef) {} ;
	CMiXoException() throw() : exception(),scMessage(GetSystemError()),id(me_undef) {};
	CMiXoException(unsigned u)  throw() :exception(),scMessage(GetLocalError(u)),id(u) {};
	CMiXoException(unsigned u,const char *f,const char *l)  throw();
	virtual ~CMiXoException() throw() {};
	unsigned GetId() const { return id; };
	string GetMessage() const { return scMessage;};
	string GetSystemError() const;
	string GetLocalError(unsigned ) const;

};

#endif // !defined(AFX_MIDIEXCEPTION_H__D253F227_3127_11D5_8DCF_D18060867A3C__INCLUDED_)

⌨️ 快捷键说明

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