Files
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

42 lines
870 B
C++

// Error.h: interface for the CError class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ERROR_H__0F1AE97A_A373_4DE7_B36A_23BE292D42B2__INCLUDED_)
#define AFX_ERROR_H__0F1AE97A_A373_4DE7_B36A_23BE292D42B2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
const long MAX_ERRORBUFFER=256;
class CError
{
protected:
char m_strErrormsg[MAX_ERRORBUFFER];
public:
CError();
virtual ~CError();
void SetErrorMsg(char *msg)
{
strcpy(m_strErrormsg,msg);
}
virtual char *GetErrorMsg()
{
char msgtemp[MAX_ERRORBUFFER];
strcpy(msgtemp,"General Error:");
strcat(msgtemp,m_strErrormsg);
strcpy(m_strErrormsg,msgtemp);
return m_strErrormsg;
}
CError(char *msg)
{
SetErrorMsg(msg);
}
};
#endif // !defined(AFX_ERROR_H__0F1AE97A_A373_4DE7_B36A_23BE292D42B2__INCLUDED_)