Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS

Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
This commit is contained in:
Cyd
2026-06-24 21:28:16 -05:00
commit 2b8ca921cb
66341 changed files with 7923174 additions and 0 deletions
+104
View File
@@ -0,0 +1,104 @@
// MapCopy.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "MapCopy.h"
#include "MapCopyDlg.h"
#include <GameOS\GameOS.hpp>
#include <DLLPlatform\DLLPlatform.hpp>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMapCopyApp
BEGIN_MESSAGE_MAP(CMapCopyApp, CWinApp)
//{{AFX_MSG_MAP(CMapCopyApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMapCopyApp construction
CMapCopyApp::CMapCopyApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMapCopyApp object
CMapCopyApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMapCopyApp initialization
BOOL CMapCopyApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CMapCopyDlg dlg;
m_pMainWnd = &dlg;
InitGameOS( AfxGetInstanceHandle(), NULL, "\0" );
Stuff::ArmorLevel = 4;
Stuff::InitializeClasses();
//MidLevelRenderer::InitializeClasses(8192*4, 1024*256);
//gosFX::InitializeClasses();
//ElementRenderer::InitializeClasses();
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
Stuff::TerminateClasses();
ExitGameOS();
return FALSE;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void __stdcall GetGameOSEnvironment(char* CommandLine)
{
//
//----------------------------------------------------------
// This is where to set GOS environment settings.
//----------------------------------------------------------
//
Environment.applicationName = "DataWalker";
Environment.screenWidth = 640;
Environment.screenHeight = 480;
Environment.bitDepth = 16;
}
+145
View File
@@ -0,0 +1,145 @@
# Microsoft Developer Studio Project File - Name="MapCopy" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=MapCopy - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "MapCopy.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "MapCopy.mak" CFG="MapCopy - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "MapCopy - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "MapCopy - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "MapCopy - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "MapCopy - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /G6 /Zp4 /MDd /W4 /Gm /GR /GX- /Zi /Od /I "..\..\Libraries\stlport" /I "..\..\Libraries" /I "..\..\Code\Mw4" /I "..\..\Code" /I "..\..\..\CoreTech\Libraries" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_AFXDLL" /D "MULTI_PLAYER" /D "USE_PROTOTYPES" /D "STRICT" /D TEST_CLASS=50 /D "_ARMOR" /Yu"stdafx.h" /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "MapCopy - Win32 Release"
# Name "MapCopy - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\MapCopy.cpp
# End Source File
# Begin Source File
SOURCE=.\MapCopy.rc
# End Source File
# Begin Source File
SOURCE=.\MapCopyDlg.cpp
# End Source File
# Begin Source File
SOURCE=.\StdAfx.cpp
# ADD CPP /Yc"stdafx.h"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\MapCopy.h
# End Source File
# Begin Source File
SOURCE=.\MapCopyDlg.h
# End Source File
# Begin Source File
SOURCE=.\Resource.h
# End Source File
# Begin Source File
SOURCE=.\StdAfx.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\res\MapCopy.ico
# End Source File
# Begin Source File
SOURCE=.\res\MapCopy.rc2
# End Source File
# End Group
# Begin Source File
SOURCE=.\ReadMe.txt
# End Source File
# End Target
# End Project
@@ -0,0 +1,89 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "Adept"=..\..\Libraries\Adept\Adept.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "DLLPlatform"=..\..\..\CoreTech\Libraries\DLLPlatform\DLLPlatform.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "GameOS"=..\..\..\CoreTech\Libraries\GameOS\GameOS.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "MapCopy"=.\MapCopy.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name Stuff
End Project Dependency
Begin Project Dependency
Project_Dep_Name Adept
End Project Dependency
Begin Project Dependency
Project_Dep_Name DLLPlatform
End Project Dependency
Begin Project Dependency
Project_Dep_Name GameOS
End Project Dependency
}}}
###############################################################################
Project: "Stuff"=..\..\Libraries\Stuff\Stuff.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
+52
View File
@@ -0,0 +1,52 @@
// MapCopy.h : main header file for the MAPCOPY application
//
#if !defined(AFX_MAPCOPY_H__DDBAE2BE_869F_4E7C_8B9C_C3007A38A826__INCLUDED_)
#define AFX_MAPCOPY_H__DDBAE2BE_869F_4E7C_8B9C_C3007A38A826__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "..\..\mw4\code\mw4\mw4headers.hpp"
#include "stuff\NotationFile.hpp"
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CMapCopyApp:
// See MapCopy.cpp for the implementation of this class
//
class CMapCopyApp : public CWinApp
{
public:
CMapCopyApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapCopyApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CMapCopyApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPCOPY_H__DDBAE2BE_869F_4E7C_8B9C_C3007A38A826__INCLUDED_)
+228
View File
@@ -0,0 +1,228 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
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_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\MapCopy.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\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 DISCARDABLE "res\\MapCopy.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About MapCopy"
FONT 8, "MS Sans Serif"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "MapCopy Version 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX
LTEXT "Copyright (C) 1999",IDC_STATIC,40,25,119,8
DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP
END
IDD_MAPCOPY_DIALOG DIALOGEX 0, 0, 320, 200
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "MapCopy"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "Close",IDOK,263,179,50,14
GROUPBOX "Map Copying Function",IDC_STATIC,7,7,81,55
CONTROL "Content -> Content",IDC_RADIO1,"Button",
BS_AUTORADIOBUTTON,9,20,75,10
CONTROL "Content -> Temp",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,
9,35,69,10
CONTROL "Temp -> Content",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON,
9,50,69,10
EDITTEXT IDC_EDIT_DIRECTORY,101,16,212,14,ES_AUTOHSCROLL
GROUPBOX "Destination Game Directory",IDC_STATIC,100,7,213,55
PUSHBUTTON "Browse",IDC_BROWSE,101,31,50,14
GROUPBOX "Status",IDC_STATIC,7,120,306,50
LISTBOX IDC_LIST_STATUS,7,130,306,40,LBS_NOINTEGRALHEIGHT |
WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
GROUPBOX "Content Maps",IDC_STATIC,7,65,93,55
GROUPBOX "Destination Maps",IDC_STATIC,200,65,100,55
LISTBOX IDC_LIST_CONTENT,7,80,93,40,LBS_SORT |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_TABSTOP
LISTBOX IDC_LIST_TEMP,200,80,100,40,LBS_SORT |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "-->",IDC_ADDTEMP,130,75,50,14
PUSHBUTTON "<--",IDC_ADDCONTENT,130,90,50,14
PUSHBUTTON "Execute",IDC_EXECUTE,130,105,50,14
PUSHBUTTON "Update Maps",IDC_UPDATE,101,46,50,14
PUSHBUTTON "Sync Buildings",IDC_SYNC_BUILDINGS,263,47,50,14
END
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// 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 "040904B0"
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "MapCopy MFC Application\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "MapCopy\0"
VALUE "LegalCopyright", "Copyright (C) 1999\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "MapCopy.EXE\0"
VALUE "ProductName", "MapCopy Application\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 228
TOPMARGIN, 7
BOTTOMMARGIN, 48
END
IDD_MAPCOPY_DIALOG, DIALOG
BEGIN
RIGHTMARGIN, 313
TOPMARGIN, 7
BOTTOMMARGIN, 193
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_ABOUTBOX "&About MapCopy..."
END
#endif // English (U.S.) 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_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\MapCopy.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
@@ -0,0 +1,734 @@
// MapCopyDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MapCopy.h"
#include "MapCopyDlg.h"
//#include <stuff\stuffheaders.hpp>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CString g_szbrowsepath;
int CALLBACK BrowseCallbackProc(HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
{
RECT rect;
//
//Center the browse dialog on the screen...
//
switch (uMsg)
{
case BFFM_INITIALIZED:
{
SendMessage(hWnd,BFFM_SETSELECTION,TRUE,(LPARAM)(LPCTSTR)g_szbrowsepath);
if (GetWindowRect(hWnd, &rect))
{
SetWindowPos(hWnd,
HWND_TOP,
(GetSystemMetrics(SM_CXSCREEN) - (rect.right - rect.left)) >> 1,
(GetSystemMetrics(SM_CYSCREEN) - (rect.bottom - rect.top)) >> 1,
0,
0,
SWP_NOSIZE);
}
}
}
return 0;
}
CString BrowseDirectory(const char *strCurrent,CWnd *pWnd)
{
CString str;
TCHAR szBuffer[MAX_PATH];
LPITEMIDLIST pidlBrowse,pidlRoot;
BROWSEINFO bi;
LPMALLOC lpMalloc;
SHGetMalloc(&lpMalloc);
ASSERT(lpMalloc);
bi.hwndOwner = pWnd->GetSafeHwnd();
// Get the ID for the "My Computer" root folder
SHGetSpecialFolderLocation(pWnd->GetSafeHwnd(),CSIDL_DRIVES,&pidlRoot);
bi.pidlRoot = pidlRoot;
bi.pszDisplayName = szBuffer;
// Localize the descriptive text
bi.lpszTitle = "Select Destination Folder";
// BIF_EDITBOX and BIF_VALIDATE are for versions 4.71 and later, they
// might be ignored by older versions
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT;// | BIF_EDITBOX;// | BIF_USENEWUI;// | BIF_VALIDATE;
bi.lParam = (LPARAM)pWnd;
bi.iImage = NULL;
bi.lpfn = BrowseCallbackProc;
bi.lParam = (LPARAM)strCurrent;
//
//Call the Windows shell folder browsing routine...
//
pidlBrowse = SHBrowseForFolder(&bi);
if (NULL != pidlBrowse)
{
if (SHGetPathFromIDList(pidlBrowse, szBuffer))
{
if ('\\' == szBuffer[lstrlen(szBuffer)-1])
szBuffer[lstrlen(szBuffer)-1] = '\0';
str = CString(szBuffer);
}
else
str = "";
//
//Free up shell memory used...
//
lpMalloc->Free(pidlBrowse);
}
else
str = "";
lpMalloc->Free(pidlRoot);
lpMalloc->Release();
return str;
}
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMapCopyDlg dialog
CMapCopyDlg::CMapCopyDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMapCopyDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMapCopyDlg)
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CMapCopyDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMapCopyDlg)
DDX_Control(pDX, IDC_LIST_STATUS, m_listStatus);
DDX_Control(pDX, IDC_LIST_TEMP, m_listDestination);
DDX_Control(pDX, IDC_LIST_CONTENT, m_listContent);
DDX_Control(pDX, IDC_EDIT_DIRECTORY, m_editDirectory);
DDX_Control(pDX, IDC_BROWSE, m_btnBrowse);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CMapCopyDlg, CDialog)
//{{AFX_MSG_MAP(CMapCopyDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BROWSE, OnBrowse)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
ON_BN_CLICKED(IDC_ADDTEMP, OnAddtemp)
ON_BN_CLICKED(IDC_ADDCONTENT, OnAddcontent)
ON_BN_CLICKED(IDC_UPDATE, OnUpdate)
ON_BN_CLICKED(IDC_EXECUTE, OnExecute)
ON_BN_CLICKED(IDC_SYNC_BUILDINGS, OnSyncBuildings)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMapCopyDlg message handlers
BOOL CMapCopyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
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);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
char buf[MAX_PATH];
GetCurrentDirectory(MAX_PATH,buf);
m_strGameDir = buf;
buf[1] = '\0';
CString tempdir = CString(buf)+":\\temp";
m_editDirectory.SetWindowText(tempdir);
SendDlgItemMessage(IDC_RADIO1,BM_CLICK,0,0);
ScanContentMaps();
// ScanDestMaps();
m_listStatus.SetHorizontalExtent(700);
return TRUE; // return TRUE unless you set the focus to a control
}
void CMapCopyDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CMapCopyDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);
// Center icon in client rectangle
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;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// The system calls this to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CMapCopyDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}
void CMapCopyDlg::OnBrowse()
{
CString dest;
m_editDirectory.GetWindowText(dest);
g_szbrowsepath = dest;
dest = BrowseDirectory(dest,&m_editDirectory);
m_editDirectory.SetWindowText(dest);
ScanDestMaps();
}
void CMapCopyDlg::OnRadio1()
{
m_copymode = 0;
ScanDestMaps();
}
void CMapCopyDlg::OnRadio2()
{
m_copymode = 1;
ScanDestMaps();
}
void CMapCopyDlg::OnRadio3()
{
m_copymode = 2;
}
void CMapCopyDlg::OnAddtemp()
{
int maxcount = m_listContent.GetSelCount();
int *items = new int[maxcount];
m_listContent.GetSelItems(maxcount,items);
for (int x=0;x<maxcount;x++)
{
CString name;
m_listContent.GetText(items[x],name);
if (LB_ERR == m_listDestination.FindString(-1,name))
{
int index = m_listDestination.AddString(name);
m_listDestination.SetItemData(index,1);
}
}
delete items;
}
void CMapCopyDlg::OnAddcontent()
{
int maxcount = m_listDestination.GetSelCount();
int *items = new int[maxcount];
m_listDestination.GetSelItems(maxcount,items);
for (int x=0;x<maxcount;x++)
{
CString name;
m_listDestination.GetText(items[x],name);
if (LB_ERR == m_listContent.FindString(-1,name))
{
int index = m_listContent.AddString(name);
m_listContent.SetItemData(index,1);
}
}
delete items;
}
void CMapCopyDlg::OnUpdate()
{
ScanDestMaps();
}
void CMapCopyDlg::OnExecute()
{
CString src;
CString dst;
//CStringList listMaps;
CString dest;
m_editDirectory.GetWindowText(dest);
switch (m_copymode)
{
case 0:
// Content->Content
case 1:
{
// Content->Temp
// Copy the items from content to dest
for (int x=0;x<m_listDestination.GetCount();x++)
{
if (m_listDestination.GetItemData(x))
{
CString name;
m_listDestination.GetText(x,name);
CopyContent(m_strGameDir,dest,name);
if (0 == m_copymode)
{
// Update resources.build
{
NotationFile notefile(dest+"\\content\\resources.build");
Page *page = notefile.GetPage("resources\\main");
Check_Object(page);
page->AppendEntry("data","maps\\"+name+"\\"+name+".data");
page->AppendEntry("instance","missions\\"+name+"\\"+name+".instance");
notefile.Save();
}
// Update editor.contents
{
}
}
}
}
break;
{
}
break;
}
case 2:
{
// Temp->Content
// Copy the items from dest to content
for (int x=0;x<m_listContent.GetCount();x++)
{
if (m_listContent.GetItemData(x))
{
CString name;
m_listContent.GetText(x,name);
CopyContent(dest,m_strGameDir,name);
{
NotationFile notefile(m_strGameDir+"\\content\\resources.build");
Page *page = notefile.GetPage("resources\\main");
Check_Object(page);
page->AppendEntry("data","maps\\"+name+"\\"+name+".data");
page->AppendEntry("instance","missions\\"+name+"\\"+name+".instance");
}
// Update editor.contents
{
}
}
}
break;
}
}
ScanContentMaps();
ScanDestMaps();
}
int CMapCopyDlg::ScanContentMaps()
{
// Clear all items in list
int count = m_listContent.GetCount();
for (int x=0;x<count;x++)
{
m_listContent.DeleteString(0);
}
// Get this from resources.build
NotationFile notefile(m_strGameDir+"\\content\\resources.build");
Page *page = notefile.GetPage("resources\\main");
if (page)
{
Check_Object(page);
Page::NoteIterator *iterator = page->MakeNoteIterator();
Check_Object(iterator);
iterator->First();
Note *entry;
while (entry = iterator->ReadAndNext())
{
Check_Object(entry);
const char *name = entry->GetName();
const char *value;
entry->GetEntry(&value);
if (strnicmp(name,"data",4)==0)
{
if (strnicmp(value,"maps",4)==0)
{
Stuff::MString mapname = value;
Stuff::StripExtension(&mapname);
Stuff::StripDirectory(&mapname);
int index = m_listContent.AddString(mapname);
m_listContent.SetItemData(index,0);
}
}
}
delete iterator;
}
return 0;
}
int CMapCopyDlg::ScanDestMaps()
{
// Clear all items in list
int count = m_listDestination.GetCount();
for (int x=0;x<count;x++)
{
m_listDestination.DeleteString(0);
}
// Get the list from the destination directory
CString strDest;
m_editDirectory.GetWindowText(strDest);
if (0 == m_copymode)
{
// Get this from resources.build
NotationFile notefile(strDest+"\\content\\resources.build");
if (notefile.FindPage("resources\\main"))
{
Page *page = notefile.GetPage("resources\\main");
if (page)
{
Check_Object(page);
Page::NoteIterator *iterator = page->MakeNoteIterator();
Check_Object(iterator);
iterator->First();
Note *entry;
while (entry = iterator->ReadAndNext())
{
Check_Object(entry);
const char *name = entry->GetName();
const char *value;
entry->GetEntry(&value);
if (strnicmp(name,"data",4)==0)
{
if (strnicmp(value,"maps",4)==0)
{
Stuff::MString mapname = value;
Stuff::StripExtension(&mapname);
Stuff::StripDirectory(&mapname);
int index = m_listDestination.AddString(mapname);
m_listDestination.SetItemData(index,0);
}
}
}
delete iterator;
}
}
}
else
{
CFileFind filefind;
if (filefind.FindFile(strDest+"\\content\\maps\\*.*"))
{
bool lastfile = false;
while (1)
{
lastfile = !filefind.FindNextFile();
if (!filefind.IsDots())
{
if (filefind.IsDirectory())
{
int index = m_listDestination.AddString(filefind.GetFileTitle());
// Set to zero if origial - will be set to 1 if it is new (do be added)
m_listDestination.SetItemData(index,0);
}
}
if (lastfile)
break;
}
filefind.Close();
}
}
return 0;
}
int CMapCopyDlg::CopyDirectory(CString src, CString dst,CString param)
{
CString action;
action = "md "+dst;
m_listStatus.AddString(action);
//ShellExecute(NULL,NULL,"md",dst,NULL,SW_HIDE);
//CreateDirectory(dst,NULL);
//system(action);
for (int x=0;x<dst.GetLength();x++)
{
if (dst[x] == '\\')
{
CString str = dst.Left(x+1);
if (str.GetLength()>3)
CreateDirectory(str,NULL);
}
}
CreateDirectory(dst,NULL);
action = "\"" + src + "\" \"" +dst+"\" "+param;
m_listStatus.AddString("xcopy "+action);
//system(action);
HINSTANCE nRet = ShellExecute(NULL,NULL,"xcopy",action,NULL,SW_HIDE);
if (nRet <= (HINSTANCE)32)
{
CString errStr;
switch ((int)nRet)
{
case 0:
errStr = "Operating system out of resources.";
break;
case ERROR_FILE_NOT_FOUND :
errStr = "ERROR_FILE_NOT_FOUND";
break;
case ERROR_PATH_NOT_FOUND :
errStr = "ERROR_PATH_NOT_FOUND ";
break;
case ERROR_BAD_FORMAT :
errStr = "ERROR_BAD_FORMAT ";
break;
case SE_ERR_ACCESSDENIED :
errStr = "SE_ERR_ACCESSDENIED ";
break;
case SE_ERR_ASSOCINCOMPLETE:
errStr = "SE_ERR_ASSOCINCOMPLETE";
break;
case SE_ERR_DDEBUSY :
errStr = "SE_ERR_DDEBUSY ";
break;
case SE_ERR_DDEFAIL :
errStr = "SE_ERR_DDEFAIL";
break;
case SE_ERR_DDETIMEOUT :
errStr = "SE_ERR_DDETIMEOUT ";
break;
case SE_ERR_DLLNOTFOUND :
errStr = "SE_ERR_DLLNOTFOUND";
break;
case SE_ERR_NOASSOC :
errStr = "SE_ERR_NOASSOC";
break;
case SE_ERR_OOM :
errStr = "SE_ERR_OOM";
break;
case SE_ERR_SHARE :
errStr = "SE_ERR_SHARE";
break;
}
errStr += " received while performing \r\n";
errStr += "'xcopy ";
errStr += action;
errStr += "'";
MessageBox((LPCSTR)errStr, "Copy error", MB_OK);
}
return 0;
}
// Copy only files in src that don't exist in dst
int CMapCopyDlg::SyncDirectory(CString src, CString dst)
{
// Find everything in src that is not in dst and copy those
CStringList listdst;
CFileFind filefind;
if (filefind.FindFile(dst+"\\*.*"))
{
bool lastfile = false;
while (1)
{
lastfile = !filefind.FindNextFile();
if (!filefind.IsDots())
{
//if (!filefind.IsDirectory())
{
listdst.AddHead(filefind.GetFileName());
}
}
if (lastfile)
break;
}
filefind.Close();
}
if (filefind.FindFile(src+"\\*.*"))
{
bool lastfile = false;
while (1)
{
lastfile = !filefind.FindNextFile();
if (!filefind.IsDots())
{
//if (!filefind.IsDirectory())
{
CString name = filefind.GetFileName();
if (NULL ==listdst.Find(name))
{
CopyDirectory(src+"\\"+name,dst+"\\"+name,"/E");
}
}
}
if (lastfile)
break;
}
filefind.Close();
}
return 0;
}
int CMapCopyDlg::CopyContent(CString src,CString dst,CString name)
{
CopyDirectory(src+"\\content\\maps\\"+name,
dst+"\\content\\maps\\"+name,
"/E");
CopyDirectory(src+"\\content\\textures\\maps\\"+name,
dst+"\\content\\textures\\maps\\"+name,
"/E");
CopyDirectory(src+"\\content\\textures\\composttexture\\"+name+"*.*",
dst+"\\content\\textures\\composttexture",
"/E");
CopyDirectory(src+"\\content\\missions\\"+name,
dst+"\\content\\missions\\"+name,
"/E");
CopyDirectory(src+"\\content\\textures\\"+name+"*.*",
dst+"\\content\\textures");
SyncDirectory(src+"\\content\\buildings",dst+"\\content\\buildings");
// Copy content\maps\<mapname>
// Copy content\textures\maps\<mapname>
// Copy content\textures\composttexture\<mapname>*
// Copy content\textures\composite\index...
// Copy content\building (only the new ones)
// Copy content\misions\<mapname>
return 0;
}
void CMapCopyDlg::OnSyncBuildings()
{
CString dest;
m_editDirectory.GetWindowText(dest);
SyncDirectory(m_strGameDir+"\\content\\buildings",dest+"\\content\\buildings");
}
@@ -0,0 +1,69 @@
// MapCopyDlg.h : header file
//
#if !defined(AFX_MAPCOPYDLG_H__F88D99D3_7DC5_4944_95E4_831E0718DDBE__INCLUDED_)
#define AFX_MAPCOPYDLG_H__F88D99D3_7DC5_4944_95E4_831E0718DDBE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMapCopyDlg dialog
class CMapCopyDlg : public CDialog
{
// Construction
public:
int CopyContent(CString,CString,CString);
int CopyDirectory(CString,CString,CString = "");
int SyncDirectory(CString,CString);
int m_copymode;
int ScanDestMaps();
CString m_strGameDir;
int ScanContentMaps();
CMapCopyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMapCopyDlg)
enum { IDD = IDD_MAPCOPY_DIALOG };
CListBox m_listStatus;
CListBox m_listDestination;
CListBox m_listContent;
CEdit m_editDirectory;
CButton m_btnBrowse;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapCopyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMapCopyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBrowse();
afx_msg void OnRadio1();
afx_msg void OnRadio2();
afx_msg void OnRadio3();
afx_msg void OnAddtemp();
afx_msg void OnAddcontent();
afx_msg void OnUpdate();
afx_msg void OnExecute();
afx_msg void OnSyncBuildings();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPCOPYDLG_H__F88D99D3_7DC5_4944_95E4_831E0718DDBE__INCLUDED_)
@@ -0,0 +1,88 @@
========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : MapCopy
========================================================================
AppWizard has created this MapCopy application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your MapCopy application.
MapCopy.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
MapCopy.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CMapCopyApp application class.
MapCopy.cpp
This is the main application source file that contains the application
class CMapCopyApp.
MapCopy.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
MapCopy.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\MapCopy.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file MapCopy.rc.
res\MapCopy.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
MapCopyDlg.h, MapCopyDlg.cpp - the dialog
These files contain your CMapCopyDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in MapCopy.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named MapCopy.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// MapCopy.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
+27
View File
@@ -0,0 +1,27 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__B43FEA32_5BFA_4E9F_A160_B223DF9AEBDC__INCLUDED_)
#define AFX_STDAFX_H__B43FEA32_5BFA_4E9F_A160_B223DF9AEBDC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__B43FEA32_5BFA_4E9F_A160_B223DF9AEBDC__INCLUDED_)
Binary file not shown.
@@ -0,0 +1,13 @@
//
// MAPCOPY.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
/////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,33 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by MapCopy.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_MAPCOPY_DIALOG 102
#define IDR_MAINFRAME 128
#define IDC_RADIO1 1000
#define IDC_RADIO2 1001
#define IDC_RADIO3 1002
#define IDC_EDIT_DIRECTORY 1003
#define IDC_BROWSE 1004
#define IDC_LIST_STATUS 1006
#define IDC_LIST_CONTENT 1008
#define IDC_LIST_TEMP 1009
#define IDC_ADDTEMP 1010
#define IDC_ADDCONTENT 1011
#define IDC_EXECUTE 1012
#define IDC_UPDATE 1013
#define IDC_SYNC_BUILDINGS 1014
// 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 1015
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif