Files
Client/Engine/Zalla3D Base Class/Error.h
LGram16 e067522598 Initial commit: ROW Client source code
Game client codebase including:
- CharacterActionControl: Character and creature management
- GlobalScript: Network, items, skills, quests, utilities
- RYLClient: Main client application with GUI and event handlers
- Engine: 3D rendering engine (RYLGL)
- MemoryManager: Custom memory allocation
- Library: Third-party dependencies (DirectX, boost, etc.)
- Tools: Development utilities

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:24:34 +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_)