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>
This commit is contained in:
2025-11-29 20:17:20 +09:00
parent 5d3cd64a25
commit dd97ddec92
11602 changed files with 1446576 additions and 0 deletions

View File

@@ -0,0 +1,93 @@
// ItemUpgradeSimulator.cpp : 응용 프로그램에 대한 클래스 동작을 정의합니다.
//
#include "stdafx.h"
#include "ItemUpgradeSimulator.h"
#include "ItemUpgradeSimulatorDlg.h"
#include <Item/ItemMgr.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#include <GameGuardLib/ggsrv.h>
// edith 2009.08.11 게임가드 2.5 업그레이드
GGAUTHS_API void NpLog(int mode, char* msg)
{
}
GGAUTHS_API void GGAuthUpdateCallback(PGG_UPREPORT report)
{
}
// CItemUpgradeSimulatorApp
BEGIN_MESSAGE_MAP(CItemUpgradeSimulatorApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
// CItemUpgradeSimulatorApp 생성
CItemUpgradeSimulatorApp::CItemUpgradeSimulatorApp()
{
// TODO: 여기에 생성 코드를 추가합니다.
// InitInstance에 모든 중요한 초기화 작업을 배치합니다.
}
// 유일한 CItemUpgradeSimulatorApp 개체입니다.
CItemUpgradeSimulatorApp theApp;
// CItemUpgradeSimulatorApp 초기화
BOOL CItemUpgradeSimulatorApp::InitInstance()
{
// 응용 프로그램 매니페스트가 ComCtl32.dll 버전 6 이상을 사용하여 비주얼 스타일을
// 사용하도록 지정하는 경우, Windows XP 상에서 반드시 InitCommonControls()가 필요합니다.
// InitCommonControls()를 사용하지 않으면 창을 만들 수 없습니다.
InitCommonControls();
CWinApp::InitInstance();
AfxEnableControlContainer();
// 표준 초기화
// 이들 기능을 사용하지 않고 최종 실행 파일의 크기를 줄이려면
// 아래에서 필요 없는 특정 초기화 루틴을 제거해야 합니다.
// 해당 설정이 저장된 레지스트리 키를 변경하십시오.
// TODO: 이 문자열을 회사 또는 조직의 이름과 같은
// 적절한 내용으로 수정해야 합니다.
SetRegistryKey(_T("로컬 응용 프로그램 마법사에서 생성한 응용 프로그램"));
if (!Item::CItemMgr::GetInstance().LoadItemProtoType("ItemScript.txt"))
{
AfxMessageBox("아이템 스크립트 로드에 실패했습니다", MB_OK | MB_ICONERROR);
}
else
{
CItemUpgradeSimulatorDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 여기에 대화 상자가 확인을 눌러 없어지는 경우 처리할
// 코드를 배치합니다.
}
else if (nResponse == IDCANCEL)
{
// TODO: 여기에 대화 상자가 취소를 눌러 없어지는 경우 처리할
// 코드를 배치합니다.
}
}
// 대화 상자가 닫혔으므로 응용 프로그램의 메시지 펌프를 시작하지 않고
// 응용 프로그램을 끝낼 수 있도록 FALSE를 반환합니다.
return FALSE;
}

View File

@@ -0,0 +1,31 @@
// ItemUpgradeSimulator.h : PROJECT_NAME 응용 프로그램에 대한 주 헤더 파일입니다.
//
#pragma once
#ifndef __AFXWIN_H__
#error PCH에서 이 파일을 포함하기 전에 'stdafx.h'를 포함하십시오.
#endif
#include "resource.h" // 주 기호
// CItemUpgradeSimulatorApp:
// 이 클래스의 구현에 대해서는 ItemUpgradeSimulator.cpp을 참조하십시오.
//
class CItemUpgradeSimulatorApp : public CWinApp
{
public:
CItemUpgradeSimulatorApp();
// 재정의
public:
virtual BOOL InitInstance();
// 구현
DECLARE_MESSAGE_MAP()
};
extern CItemUpgradeSimulatorApp theApp;

View File

@@ -0,0 +1,214 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// 한국어 resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
#ifdef _WIN32
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
#pragma code_page(949)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)\r\n"
"LANGUAGE 18, 1\r\n"
"#pragma code_page(949)\r\n"
"#include ""res\\ItemUpgradeSimulator.rc2"" // Microsoft Visual C++에서 편집되지 않은 리소스\r\n"
"#include ""afxres.rc"" // 표준 구성 요소\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON "res\\ItemUpgradeSimulator.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ITEMUPGRADESIMULATOR_DIALOG DIALOGEX 0, 0, 242, 273
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE |
WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "ItemUpgradeSimulator"
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
LTEXT "아이템 이름",IDC_STATIC,7,9,42,10
GROUPBOX "사용 광물",IDC_STATIC,7,22,57,54
GROUPBOX "사용 보석",IDC_STATIC,69,22,57,78
EDITTEXT IDC_ITEMNAME,49,7,76,12,ES_AUTOHSCROLL
CONTROL "실빈",IDC_MINERAL_SILVIN,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,14,34,30,10
CONTROL "미스릴",IDC_MINERAL_MITHRIL,"Button",BS_AUTORADIOBUTTON,
14,47,37,10
CONTROL "이터니움",IDC_MINERAL_ETER,"Button",BS_AUTORADIOBUTTON,
14,59,43,10
CONTROL "루비",IDC_GEM_RUBY,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,75,33,30,10
CONTROL "에메랄드",IDC_GEM_EMERALD,"Button",BS_AUTORADIOBUTTON,
75,47,43,10
CONTROL "사파이어",IDC_GEM_SAPP,"Button",BS_AUTORADIOBUTTON,75,
60,43,10
CONTROL "다이아몬드",IDC_GEM_DIAMOND,"Button",BS_AUTORADIOBUTTON,
75,73,50,10
CONTROL "블랙문",IDC_GEM_BLACKMOON,"Button",BS_AUTORADIOBUTTON,
75,86,37,10
PUSHBUTTON "START",IDC_START,7,252,228,14
CONTROL "",IDC_CURRENT_ITEM,"SysListView32",LVS_REPORT |
LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,135,7,98,95
GROUPBOX "사용된 재료 총량",IDC_STATIC,7,111,228,135
LTEXT "제물 아이템",IDC_STATIC,16,129,45,10
LTEXT "광물",IDC_STATIC,16,145,15,8
LTEXT "보석",IDC_STATIC,135,145,15,8
LTEXT "금액",IDC_STATIC,135,129,15,8
EDITTEXT IDC_ITEM_SACRIFICE,72,127,52,14,ES_RIGHT |
ES_AUTOHSCROLL | ES_READONLY
EDITTEXT IDC_TOTAL_MINERAL,72,143,52,14,ES_RIGHT | ES_AUTOHSCROLL |
ES_READONLY
EDITTEXT IDC_TOTAL_USEDMONEY,152,127,70,14,ES_RIGHT |
ES_AUTOHSCROLL | ES_READONLY
CONTROL "",IDC_UPGRADE_LOG,"SysListView32",LVS_REPORT |
LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,16,159,110,82
CONTROL "",IDC_GEM_USED,"SysListView32",LVS_REPORT |
LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,136,159,88,82
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "041203b5"
BEGIN
VALUE "CompanyName", "TODO: <회사 이름>"
VALUE "FileDescription", "TODO: <파일 설명>"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "ItemUpgradeSimulator.exe"
VALUE "LegalCopyright", "TODO: (c) <회사 이름>. All rights reserved."
VALUE "OriginalFilename", "ItemUpgradeSimulator.exe"
VALUE "ProductName", "TODO: <제품 이름>"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "변환", 0x412, 949
END
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ITEMUPGRADESIMULATOR_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 235
TOPMARGIN, 7
BOTTOMMARGIN, 266
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_ABOUTBOX "ItemUpgradeSimulator 정보(&A)..."
END
#endif // 한국어 resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
LANGUAGE 18, 1
#pragma code_page(949)
#include "res\ItemUpgradeSimulator.rc2" // Microsoft Visual C++에서 편집되지 않은 리소스
#include "afxres.rc" // 표준 구성 요소
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -0,0 +1,194 @@
<?xml version="1.0" encoding="ks_c_5601-1987"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="ItemUpgradeSimulator"
ProjectGUID="{CA3C5C9D-CFB2-43FE-BD92-D912D5547DEC}"
Keyword="MFCProj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="../DBToolExecutable/$(ConfigurationName)"
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
ConfigurationType="1"
UseOfMFC="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../;./;../../RylServerProject/;../../RylServerProject/BaseLibrary;../../RylServerProject/RylGameLibrary;../../RylServerProject/RylServerLibrary"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
TreatWChar_tAsBuiltInType="TRUE"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
SubSystem="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
MkTypLibCompatible="FALSE"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1042"
AdditionalIncludeDirectories="$(IntDir)"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="../DBToolExecutable/$(ConfigurationName)"
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
ConfigurationType="1"
UseOfMFC="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../;./;../../RylServerProject/;../../RylServerProject/BaseLibrary;../../RylServerProject/RylGameLibrary;../../RylServerProject/RylServerLibrary"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
MinimalRebuild="FALSE"
RuntimeLibrary="0"
TreatWChar_tAsBuiltInType="TRUE"
UsePrecompiledHeader="2"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
MkTypLibCompatible="FALSE"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1042"
AdditionalIncludeDirectories="$(IntDir)"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="소스 파일"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath=".\ItemUpgradeSimulator.cpp">
</File>
<File
RelativePath=".\ItemUpgradeSimulatorDlg.cpp">
</File>
<File
RelativePath=".\stdafx.cpp">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="헤더 파일"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath=".\ItemUpgradeSimulator.h">
</File>
<File
RelativePath=".\ItemUpgradeSimulatorDlg.h">
</File>
<File
RelativePath=".\Resource.h">
</File>
<File
RelativePath=".\stdafx.h">
</File>
</Filter>
<Filter
Name="리소스 파일"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
<File
RelativePath=".\res\ItemUpgradeSimulator.ico">
</File>
<File
RelativePath=".\ItemUpgradeSimulator.rc">
</File>
<File
RelativePath=".\res\ItemUpgradeSimulator.rc2">
</File>
</Filter>
<File
RelativePath=".\res\ItemUpgradeSimulator.manifest">
</File>
<File
RelativePath=".\ReadMe.txt">
</File>
</Files>
<Globals>
<Global
Name="RESOURCE_FILE"
Value="ItemUpgradeSimulator.rc"/>
</Globals>
</VisualStudioProject>

View File

@@ -0,0 +1,474 @@
// ItemUpgradeSimulatorDlg.cpp : 구현 파일
//
#include "stdafx.h"
#include "ItemUpgradeSimulator.h"
#include "ItemUpgradeSimulatorDlg.h"
#include <Item/Item.h>
#include <Item/ItemMgr.h>
#include <Item/ItemFactory.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CItemUpgradeSimulatorDlg 대화 상자
CItemUpgradeSimulatorDlg::CItemUpgradeSimulatorDlg(CWnd* pParent /*=NULL*/)
: CDialog(CItemUpgradeSimulatorDlg::IDD, pParent)
, m_szItemName(_T(""))
, m_nGemType(0)
, m_nMineralType(0)
{
m_simData.m_dwUsedMoney = 0LL;
m_simData.m_dwSacrificeItem = 0L;
m_simData.m_dwUsedMineral = 0L;
memset(m_simData.m_dwSucceededUpgrade, 0, sizeof(m_simData.m_dwSucceededUpgrade));
memset(m_simData.m_dwFailedUpgrade, 0, sizeof(m_simData.m_dwFailedUpgrade));
memset(m_simData.m_dwUsedGems, 0, sizeof(m_simData.m_dwUsedGems));
m_simData.m_usPrototypeID = 0;
m_simData.m_lpMineral = 0;
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CItemUpgradeSimulatorDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_ITEM_SACRIFICE, m_simData.m_dwSacrificeItem);
DDX_Text(pDX, IDC_TOTAL_MINERAL, m_simData.m_dwUsedMineral);
DDX_Text(pDX, IDC_TOTAL_USEDMONEY, m_simData.m_dwUsedMoney);
DDX_Text(pDX, IDC_ITEMNAME, m_szItemName);
DDX_Radio(pDX, IDC_MINERAL_SILVIN, m_nMineralType);
DDX_Radio(pDX, IDC_GEM_RUBY, m_nGemType);
DDX_Control(pDX, IDC_CURRENT_ITEM, m_ResultList);
DDX_Control(pDX, IDC_GEM_USED, m_GemUsedList);
DDX_Control(pDX, IDC_UPGRADE_LOG, m_UpgradeResultList);
}
BEGIN_MESSAGE_MAP(CItemUpgradeSimulatorDlg, CDialog)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
//}}AFX_MSG_MAP
ON_BN_CLICKED(IDC_START, OnBnClickedStart)
END_MESSAGE_MAP()
// CItemUpgradeSimulatorDlg 메시지 처리기
BOOL CItemUpgradeSimulatorDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// 시스템 메뉴에 "정보..." 메뉴 항목을 추가합니다.
// IDM_ABOUTBOX는 시스템 명령 범위에 있어야 합니다.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// 이 대화 상자의 아이콘을 설정합니다. 응용 프로그램의 주 창이 대화 상자가 아닐 경우에는
// 프레임워크가 이 작업을 자동으로 수행합니다.
SetIcon(m_hIcon, TRUE); // 큰 아이콘을 설정합니다.
SetIcon(m_hIcon, FALSE); // 작은 아이콘을 설정합니다.
// TODO: 여기에 추가 초기화 작업을 추가합니다.
m_ResultList.InsertColumn(0, _T(""), LVCFMT_LEFT, 80);
m_ResultList.InsertColumn(1, _T(""), LVCFMT_LEFT, 150);
m_GemUsedList.InsertColumn(0, _T(""), LVCFMT_LEFT, 80);
m_GemUsedList.InsertColumn(1, _T(""), LVCFMT_LEFT, 50);
m_UpgradeResultList.InsertColumn(0, _T(""), LVCFMT_LEFT, 50);
m_UpgradeResultList.InsertColumn(1, _T(""), LVCFMT_LEFT, 120);
return TRUE; // 컨트롤에 대한 포커스를 설정하지 않을 경우 TRUE를 반환합니다.
}
void CItemUpgradeSimulatorDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
CDialog::OnSysCommand(nID, lParam);
}
// 대화 상자에 최소화 단추를 추가할 경우 아이콘을 그리려면
// 아래 코드가 필요합니다. 문서/뷰 모델을 사용하는 MFC 응용 프로그램의 경우에는
// 프레임워크에서 이 작업을 자동으로 수행합니다.
void CItemUpgradeSimulatorDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // 그리기를 위한 디바이스 컨텍스트
SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);
// 클라이언트 사각형에서 아이콘을 가운데에 맞춥니다.
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
// 아이콘을 그립니다.
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// 사용자가 최소화된 창을 끄는 동안에 커서가 표시되도록 시스템에서
// 이 함수를 호출합니다.
HCURSOR CItemUpgradeSimulatorDlg::OnQueryDragIcon()
{
return static_cast<HCURSOR>(m_hIcon);
}
const TCHAR* GradeToString(Item::EquipType::Grade eGrade)
{
const TCHAR* szGradeString = _T("Unknown");
switch(eGrade)
{
case Item::EquipType::AAA_GRADE: szGradeString = _T("AAA"); break;
case Item::EquipType::AA_GRADE: szGradeString = _T("AA"); break;
case Item::EquipType::A_GRADE: szGradeString = _T("A"); break;
case Item::EquipType::B_GRADE: szGradeString = _T("B"); break;
case Item::EquipType::C_GRADE: szGradeString = _T("C"); break;
case Item::EquipType::D_GRADE: szGradeString = _T("D"); break;
case Item::EquipType::F_GRADE: szGradeString = _T("F"); break;
case Item::EquipType::X_GRADE: szGradeString = _T("X"); break;
};
return szGradeString;
}
namespace Item
{
const int MAX_EQUIP_TYPE = 6;
const int MAX_TYPE_NUM = 2;
using namespace Attribute;
Type aryExceptAttr[MAX_EQUIP_TYPE][Item::MAX_GEM_KIND][MAX_TYPE_NUM] =
{
// 루비 에메랄드 사파이어 다이아몬드 블랙문
{ { ARMOR, NONE }, { MAX_HP, NONE }, { HP_REGEN, NONE }, { MAGIC_RESIST, NONE }, { EVADE, NONE } }, // 아머
{ { MIN_DAMAGE, MAX_DAMAGE }, { MAX_MP, NONE }, { MP_REGEN, NONE }, { CRITICAL, NONE }, { HIT_RATE, NONE } }, // 대거
{ { MIN_DAMAGE, MAX_DAMAGE }, { MAX_MP, NONE }, { MP_REGEN, NONE }, { CRITICAL, NONE }, { HIT_RATE, NONE } }, // 한손무기
{ { MIN_DAMAGE, MAX_DAMAGE }, { MAX_MP, NONE }, { MP_REGEN, NONE }, { CRITICAL, NONE }, { HIT_RATE, NONE } }, // 양손무기
{ { MAGIC_POWER, MAX_DAMAGE }, { MAX_MP, NONE }, { MP_REGEN, NONE }, { CRITICAL, NONE }, { HIT_RATE, NONE } }, // 스태프
{ { MAX_HP, NONE}, { MAX_MP, NONE }, { MP_REGEN, NONE }, { BLOCK, NONE }, { HP_REGEN, NONE } }, // 방패
};
}
Item::Attribute::Type GetSacrificePos(Item::CEquipment& item, Item::CEquipment& sacrifice, Item::CItem& gem)
{
short usEquipAttr[Item::Attribute::MAX_ATTRIBUTE_NUM];
short usSacrificeAttr[Item::Attribute::MAX_ATTRIBUTE_NUM];
item.GetAttribute(usEquipAttr, Item::Attribute::MAX_ATTRIBUTE_NUM);
sacrifice.GetAttribute(usSacrificeAttr, Item::Attribute::MAX_ATTRIBUTE_NUM);
int nGemIndex = gem.GetPrototypeID() - 1911;
int nType = 0;
Item::CItemType::ArrayType arrayType = static_cast<Item::CItemType::ArrayType>(
Item::CItemType::GetEquipType(item.GetItemInfo().m_DetailData.m_dwFlags));
switch(arrayType)
{
case Item::CItemType::ARMOUR_TYPE: nType = 0; break;
case Item::CItemType::DAGGER_TYPE: nType = 1; break;
case Item::CItemType::ONEHANDED_TYPE: nType = 2; break;
case Item::CItemType::LONGRANGE_TYPE: nType = 2; break;
case Item::CItemType::TWOHANDED_TYPE: nType = 3; break;
case Item::CItemType::STAFF_TYPE: nType = 4; break;
case Item::CItemType::SHIELD_TYPE: nType = 5; break;
}
int nMinValue = INT_MAX;
int nMinIndex = Item::Attribute::MAX_ATTRIBUTE_NUM;
int nIndex = 0;
for (nIndex = 0; nIndex < Item::Attribute::MAX_ATTRIBUTE_NUM; ++nIndex)
{
// 전략1. 현재 아이템의 속성보다 높은 속성을 골라 합성한다.
if (nIndex != Item::aryExceptAttr[nType][nGemIndex][0] &&
nIndex != Item::aryExceptAttr[nType][nGemIndex][1] &&
item.CanOptionGraft(arrayType, static_cast<Item::Attribute::Type>(nIndex)))
{
if (usEquipAttr[nIndex] <= usSacrificeAttr[nIndex])
{
// 희생물의 옵션이 더 크다.
break;
}
else if (usEquipAttr[nIndex] < nMinValue)
{
nMinValue = usEquipAttr[nIndex];
nMinIndex = nIndex;
}
}
}
if (nIndex == Item::Attribute::MAX_ATTRIBUTE_NUM &&
nMinIndex != Item::Attribute::MAX_ATTRIBUTE_NUM)
{
nIndex = nMinIndex;
}
ASSERT(nIndex != Item::Attribute::MAX_ATTRIBUTE_NUM);
return static_cast<Item::Attribute::Type>(nIndex);
}
Item::CEquipment* CreateResultItem(SimulateData& simData,
Item::EquipType::Grade eGrade, Item::CItem& Gem)
{
Item::CItem* lpItem = Item::CItemFactory::GetInstance().CreateItem(simData.m_usPrototypeID);
Item::CEquipment* lpEquipment = Item::CEquipment::DowncastToEquipment(lpItem);
DWORD dwUsedGold = 0;
unsigned char cMaxDurOut = 0;
if (0 != lpEquipment)
{
// C그레이드 아이템으로 뽑는다.
lpEquipment->AddRandomOption(Item::EquipType::C_GRADE, 0);
while(eGrade < lpEquipment->GetItemGrade().m_eItemGrade)
{
// 10제련에 성공할때까지 제련을 한다.
while (lpEquipment->GetUpgradeLevel() < 10)
{
dwUsedGold = 0;
simData.m_lpMineral->SetNumOrDurability(UCHAR_MAX);
unsigned char cUpgradeLevel = lpEquipment->GetUpgradeLevel();
if (Item::CEquipment::S_SUCCESS ==
lpEquipment->UpgradeItem(*simData.m_lpMineral, ULONG_MAX, dwUsedGold, cMaxDurOut))
{
// 성공 로그
if (cUpgradeLevel < lpEquipment->GetUpgradeLevel())
{
++simData.m_dwSucceededUpgrade[lpEquipment->GetUpgradeLevel() - 1];
}
else
{
++simData.m_dwFailedUpgrade[lpEquipment->GetUpgradeLevel()];
}
}
else
{
// 실패 로그
}
simData.m_dwUsedMoney += dwUsedGold;
simData.m_dwUsedMineral += (UCHAR_MAX - simData.m_lpMineral->GetNumOrDurability());
}
// 10제련 완성 후에 보석을 5개 박는다.
for (int nGemInstallCount = 0; nGemInstallCount < 5; ++nGemInstallCount)
{
Gem.SetNumOrDurability(UCHAR_MAX);
if (Item::CEquipment::S_SUCCESS ==
lpEquipment->InstallSocket(Gem))
{
simData.m_dwUsedGems[Gem.GetPrototypeID() - 1911] +=
(UCHAR_MAX - Gem.GetNumOrDurability());
}
else
{
}
}
if (eGrade < lpEquipment->GetItemGrade().m_eItemGrade)
{
// 방어구이면 다이아, 아니면 루비를 사용해, 희생물을 만든다.
unsigned short usSacrificedItemGem =
(lpEquipment->GetItemInfo().m_DetailData.m_dwFlags & Item::DetailData::ARMOR)
? 1914 : 1911;
Item::CItem* lpGem = &Gem;
if (Gem.GetPrototypeID() != usSacrificedItemGem)
{
lpGem = Item::CItemFactory::GetInstance().CreateItem(usSacrificedItemGem);
}
if (0 != lpGem)
{
Item::CEquipment* lpSacrifice =
CreateResultItem(simData, lpEquipment->GetItemGrade().m_eItemGrade, *lpGem);
if (0 != lpSacrifice)
{
dwUsedGold = 0;
if (Item::CEquipment::S_SUCCESS ==
lpEquipment->OptionGraft(lpSacrifice, true,
GetSacrificePos(*lpEquipment, *lpSacrifice, Gem), ULONG_MAX, dwUsedGold))
{
++simData.m_dwSacrificeItem;
simData.m_dwUsedMoney += dwUsedGold;
}
else
{
}
DELETE_ITEM(lpSacrifice);
}
if (lpGem != &Gem)
{
DELETE_ITEM(lpGem);
}
}
}
}
}
else
{
DELETE_ITEM(lpItem);
}
return lpEquipment;
}
void CItemUpgradeSimulatorDlg::OnBnClickedStart()
{
// TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다.
UpdateData(TRUE);
const Item::ItemInfo* lpItemInfo =
Item::CItemMgr::GetInstance().GetItemInfoFromItemName(m_szItemName);
if (0 != lpItemInfo)
{
m_simData.m_dwUsedMoney = 0LL;
m_simData.m_dwSacrificeItem = 0L;
m_simData.m_dwUsedMineral = 0L;
memset(m_simData.m_dwSucceededUpgrade, 0, sizeof(m_simData.m_dwSucceededUpgrade));
memset(m_simData.m_dwFailedUpgrade, 0, sizeof(m_simData.m_dwFailedUpgrade));
memset(m_simData.m_dwUsedGems, 0, sizeof(m_simData.m_dwUsedGems));
m_simData.m_usPrototypeID = lpItemInfo->m_usProtoTypeID;
m_simData.m_lpMineral = Item::CItemFactory::GetInstance().CreateItem(m_nMineralType + 2001);
Item::CItem* lpGem = Item::CItemFactory::GetInstance().CreateItem(m_nGemType + 1911);
if (0 != m_simData.m_lpMineral && 0 != lpGem)
{
Item::CEquipment* lpEquipment =
CreateResultItem(m_simData, Item::EquipType::AAA_GRADE, *lpGem);
if (0 != lpEquipment)
{
// 속성 값을 얻어와서 리스트박스에 추가한다.
CString szText;
int nCount = 0;
Item::Grade::GradeInfo gradeInfo = lpEquipment->GetItemGrade();
szText.SetString(GradeToString(gradeInfo.m_eItemGrade));
for(nCount = 0; nCount < gradeInfo.m_cPlus; ++nCount) { szText.Append(_T("+")); }
m_ResultList.DeleteAllItems();
m_ResultList.InsertItem(0, "Grade");
m_ResultList.SetItemText(0, 1, szText);
short Attributes[Item::Attribute::MAX_ATTRIBUTE_NUM];
lpEquipment->GetAttribute(Attributes, Item::Attribute::MAX_ATTRIBUTE_NUM);
int nInsertIndex = 1;
for(nCount = 0; nCount < Item::Attribute::MAX_ATTRIBUTE_NUM; ++nCount)
{
if (0 != Attributes[nCount])
{
szText.Format("%d (%s)", Attributes[nCount],
GradeToString(gradeInfo.m_aryAttributeGrade[nCount]));
m_ResultList.InsertItem(nInsertIndex,
Item::Attribute::Attributes[nCount].GetTypeName());
m_ResultList.SetItemText(nInsertIndex, 1, szText);
++nInsertIndex;
}
}
m_GemUsedList.DeleteAllItems();
const TCHAR* szGemText[] =
{ _T("루비"), _T("에메랄드"), _T("사파이어"), _T("다이아몬드"), _T("블랙문") };
for(nCount = 0; nCount < Item::MAX_GEM_KIND; ++nCount)
{
m_GemUsedList.InsertItem(nCount, szGemText[nCount]);
szText.Format("%d", m_simData.m_dwUsedGems[nCount]);
m_GemUsedList.SetItemText(nCount, 1, szText);
}
m_UpgradeResultList.DeleteAllItems();
for(nCount = 0; nCount < 10; ++nCount)
{
szText.Format(_T("%d단계"), nCount);
m_UpgradeResultList.InsertItem(nCount, szText);
szText.Format(_T("(%d성공/%d실패)"),
m_simData.m_dwSucceededUpgrade[nCount],
m_simData.m_dwFailedUpgrade[nCount]);
m_UpgradeResultList.SetItemText(nCount, 1, szText);
}
DELETE_ITEM(lpEquipment);
}
}
else
{
DELETE_ITEM(m_simData.m_lpMineral);
DELETE_ITEM(lpGem);
}
}
UpdateData(FALSE);
}

View File

@@ -0,0 +1,70 @@
// ItemUpgradeSimulatorDlg.h : 헤더 파일
//
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include <Item/ItemConstants.h>
namespace Item
{
// forward decl.
class CItem;
}
struct SimulateData
{
ULONGLONG m_dwUsedMoney;
DWORD m_dwSacrificeItem;
DWORD m_dwUsedMineral;
DWORD m_dwSucceededUpgrade[10];
DWORD m_dwFailedUpgrade[10];
DWORD m_dwUsedGems[Item::MAX_GEM_KIND];
WORD m_usPrototypeID;
Item::CItem* m_lpMineral;
};
// CItemUpgradeSimulatorDlg 대화 상자
class CItemUpgradeSimulatorDlg : public CDialog
{
// 생성
public:
CItemUpgradeSimulatorDlg(CWnd* pParent = NULL); // 표준 생성자
// 대화 상자 데이터
enum { IDD = IDD_ITEMUPGRADESIMULATOR_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원
// 구현
protected:
HICON m_hIcon;
// 메시지 맵 함수를 생성했습니다.
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
private:
afx_msg void OnBnClickedStart();
SimulateData m_simData;
CString m_szItemName;
CListCtrl m_ResultList;
CListCtrl m_GemUsedList;
CListCtrl m_UpgradeResultList;
int m_nGemType;
int m_nMineralType;
};

View File

@@ -0,0 +1,77 @@
================================================================================
MFC 라이브러리 : ItemUpgradeSimulator 프로젝트 개요
================================================================================
응용 프로그램 마법사를 사용하여 ItemUpgradeSimulator 응용 프로그램을 만듭니다. 이 응용
프로그램에서는 기본적인 MFC 사용 밥법과 응용 프로그램 작성 방법을 설명합니다.
이 파일에는 ItemUpgradeSimulator 응용 프로그램을 구성하는 각 파일에 대한 개요가 포함되어
있습니다.
ItemUpgradeSimulator.vcproj
응용 프로그램 마법사를 사용하여 생성된 VC++ 프로젝트의 주 프로젝트 파일입니다.
이 파일에는 파일을 생성한 Visual C++ 버전 정보 및 응용 프로그램 마법사에서 선택한 플랫폼,
구성, 프로젝트 기능 등의 정보가 포함됩니다.
ItemUpgradeSimulator.h
응용 프로그램의 주 헤더 파일입니다. 이 파일에는 다른 프로젝트에 관련된 Resource.h와 같은
특정 헤더가 포함되며 CItemUpgradeSimulatorApp 응용 프로그램 클래스가 선언됩니다.
ItemUpgradeSimulator.cpp
CItemUpgradeSimulatorApp 응용 프로그램 클래스를 포함하는 주 응용 프로그램의 소스 파일입니다.
ItemUpgradeSimulator.rc
프로그램에서 사용하는 모든 Microsoft Windows 리소스가 나열된 파일입니다.
이 파일에는 RES 하위 디렉터리에 저장된 아이콘, 비트맵 및 커서가 포함되며
Microsoft Visual C++에서 직접 이 파일을 편집할 수도 있습니다. 사용자의 프로젝트
리소스는 1042에 들어 있습니다.
res\ItemUpgradeSimulator.ico
응용 프로그램의 아이콘으로 사용되는 아이콘 파일입니다.
이 아이콘은 주 리소스 파일인 ItemUpgradeSimulator.rc에 포함됩니다.
res\ItemUpgradeSimulator.rc2
Microsoft Visual C++에서 편집할 수 없는 리소스가 포함된 파일입니다.
리소스 편집기에서 편집할 수 없는 모든 리소스는 이 파일에 포함되어 있습니다.
/////////////////////////////////////////////////////////////////////////////
응용 프로그램 마법사에서는 단일 대화 상자 클래스를 만듭니다.
ItemUpgradeSimulatorDlg.h, ItemUpgradeSimulatorDlg.cpp - 대화 상자
CItemUpgradeSimulatorDlg 클래스를 포함하는 파일입니다. 이 클래스에는 응용 프로그램의
주 대화 상자에 대한 동작이 정의됩니다. 대화 상자의 템플릿은 ItemUpgradeSimulator.rc에
있으며 Microsoft Visual C++에서 편집할 수 있습니다.
/////////////////////////////////////////////////////////////////////////////
기타 기능
ActiveX 컨트롤
응용 프로그램에서 ActiveX 컨트롤을 사용할 수 있습니다.
/////////////////////////////////////////////////////////////////////////////
기타 표준 파일
StdAfx.h, StdAfx.cpp
미리 컴파일된 헤더 파일(PCH) ItemUpgradeSimulator.pch 및 미리 컴파일된
형식 파일 StdAfx.obj를 빌드할 때 사용되는 파일입니다.
Resource.h
새로운 리소스 ID를 정의하는 표준 헤더 파일입니다.
Microsoft Visual C++에서 이 파일을 읽고 업데이트합니다.
/////////////////////////////////////////////////////////////////////////////
기타 정보
응용 프로그램 마법사에서는 "TODO:"를 사용하여 추가하거나 사용자 지정해야 하는
소스 코드를 나타냅니다.
응용 프로그램에서 공유 DLL에 MFC를 사용하고 응용 프로그램의 언어가 운영 체제의
언어와 다른 경우 Microsoft Visual C++ CD-ROM의 Win\System 디렉터리에 있는
해당 지역의 리소스인 MFC70XXX.DLL을 컴퓨터의 system 또는 system32 디렉터리에
복사한 다음 MFCLOC.DLL로 이름을 바꾸어야 합니다. "XXX"는 해당 언어를 나타내는
약어입니다. 예를 들어 MFC70DEU.DLL에는 독일어로 변환된 리소스가 포함됩니다.
이런 작업을 하지 않으면 응용 프로그램의 일부 UI 요소가 운영 체제의 언어로
남아 있게 됩니다.
/////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,54 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ItemUpgradeSimulator.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDS_ABOUTBOX 101
#define IDD_ITEMUPGRADESIMULATOR_DIALOG 102
#define IDR_MAINFRAME 128
#define IDC_ITEMNAME 1001
#define IDC_RADIO1 1002
#define IDC_MINERAL_SILVIN 1002
#define IDC_RADIO2 1003
#define IDC_MINERAL_MITHRIL 1003
#define IDC_RADIO3 1004
#define IDC_MINERAL_ETER 1004
#define IDC_RADIO4 1005
#define IDC_GEM_RUBY 1005
#define IDC_RADIO5 1006
#define IDC_GEM_EMERALD 1006
#define IDC_RADIO6 1007
#define IDC_GEM_SAPP 1007
#define IDC_RADIO7 1008
#define IDC_GEM_DIAMOND 1008
#define IDC_RADIO8 1009
#define IDC_GEM_BLACKMOON 1009
#define IDC_BUTTON1 1014
#define IDC_START 1014
#define IDC_BUTTON2 1015
#define IDC_BUTTON3 1016
#define IDC_LIST6 1017
#define IDC_LIST7 1018
#define IDC_LIST8 1019
#define IDC_CURRENT_ITEM 1019
#define IDC_EDIT2 1020
#define IDC_ITEM_SACRIFICE 1020
#define IDC_EDIT3 1021
#define IDC_TOTAL_MINERAL 1021
#define IDC_EDIT4 1022
#define IDC_EDIT5 1023
#define IDC_TOTAL_USEDMONEY 1023
#define IDC_UPGRADE_LOG 1024
#define IDC_LIST2 1025
#define IDC_GEM_USED 1025
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1026
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Windows.ItemUpgradeSimulator"
type="win32"
/>
<description>여기에 응용 프로그램 설명을 추가합니다.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

View File

@@ -0,0 +1,13 @@
//
// ItemUpgradeSimulator.RC2 - resources Microsoft Visual C++에서 직접 편집하지 않는 리소스
//
#ifdef APSTUDIO_INVOKED
#error 이 파일은 Microsoft Visual C++에서 편집할 수 없습니다.
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// 여기에 수동으로 편집한 리소스를 추가합니다.
/////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,7 @@
// stdafx.cpp : 표준 포함 파일을 포함하는 소스 파일입니다.
// ItemUpgradeSimulator.pch는 미리 컴파일된 헤더가 됩니다.
// stdafx.obj는 미리 컴파일된 형식 정보를 포함합니다.
#include "stdafx.h"

View File

@@ -0,0 +1,42 @@
// stdafx.h : 잘 변경되지 않고 자주 사용하는
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이
// 들어 있는 포함 파일입니다.
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Windows 헤더에서 거의 사용되지 않는 내용을 제외시킵니다.
#endif
// 아래 지정된 플랫폼보다 우선하는 플랫폼을 대상으로 하는 경우 다음 정의를 수정하십시오.
// 다른 플랫폼에 사용되는 해당 값의 최신 정보는 MSDN을 참조하십시오.
#ifndef WINVER // Windows 95 및 Windows NT 4 이후 버전에서만 기능을 사용할 수 있습니다.
#define WINVER 0x0400 // Windows 98과 Windows 2000 이후 버전에 맞도록 적합한 값으로 변경해 주십시오.
#endif
#ifndef _WIN32_WINNT // Windows NT 4 이후 버전에서만 기능을 사용할 수 있습니다.
#define _WIN32_WINNT 0x0400 // Windows 98과 Windows 2000 이후 버전에 맞도록 적합한 값으로 변경해 주십시오.
#endif
#ifndef _WIN32_WINDOWS // Windows 98 이후 버전에서만 기능을 사용할 수 있습니다.
#define _WIN32_WINDOWS 0x0410 // Windows Me 이후 버전에 맞도록 적합한 값으로 변경해 주십시오.
#endif
#ifndef _WIN32_IE // IE 4.0 이후 버전에서만 기능을 사용할 수 있습니다.
#define _WIN32_IE 0x0400 // IE 5.0 이후 버전에 맞도록 적합한 값으로 변경해 주십시오.
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 일부 CString 생성자는 명시적으로 선언됩니다.
// MFC의 공통 부분과 무시 가능한 경고 메시지에 대한 숨기기를 해제합니다.
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC 핵심 및 표준 구성 요소
#include <afxext.h> // MFC 익스텐션
#include <afxdisp.h> // MFC 자동화 클래스
#include <afxdtctl.h> // Internet Explorer 4 공용 컨트롤에 대한 MFC 지원
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows 공용 컨트롤에 대한 MFC 지원
#endif // _AFX_NO_AFXCMN_SUPPORT