Initial commit: Complete open-source Decal rebuild
All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
d1442e3747
1382 changed files with 170725 additions and 0 deletions
105
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.cpp
Normal file
105
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.cpp
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
// DecalSupportLibraries.cpp : Defines the class behaviors for the application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "DecalSupportLibraries.h"
|
||||
#include "DecalSupportLibrariesDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
|
||||
// CDecalSupportLibrariesApp
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDecalSupportLibrariesApp, CWinApp)
|
||||
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CDecalSupportLibrariesApp construction
|
||||
|
||||
CDecalSupportLibrariesApp::CDecalSupportLibrariesApp()
|
||||
{
|
||||
// TODO: add construction code here,
|
||||
// Place all significant initialization in InitInstance
|
||||
}
|
||||
|
||||
|
||||
// The one and only CDecalSupportLibrariesApp object
|
||||
|
||||
CDecalSupportLibrariesApp theApp;
|
||||
|
||||
const GUID CDECL BASED_CODE _tlid =
|
||||
{ 0x24241FCB, 0x6DD4, 0x4B97, { 0x8C, 0x1F, 0x88, 0xA2, 0x30, 0x84, 0xAF, 0xA5 } };
|
||||
const WORD _wVerMajor = 1;
|
||||
const WORD _wVerMinor = 0;
|
||||
|
||||
|
||||
// CDecalSupportLibrariesApp initialization
|
||||
|
||||
BOOL CDecalSupportLibrariesApp::InitInstance()
|
||||
{
|
||||
// InitCommonControls() is required on Windows XP if an application
|
||||
// manifest specifies use of ComCtl32.dll version 6 or later to enable
|
||||
// visual styles. Otherwise, any window creation will fail.
|
||||
InitCommonControls();
|
||||
|
||||
CWinApp::InitInstance();
|
||||
|
||||
// Initialize OLE libraries
|
||||
if (!AfxOleInit())
|
||||
{
|
||||
AfxMessageBox(IDP_OLE_INIT_FAILED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
AfxEnableControlContainer();
|
||||
|
||||
// Parse command line for automation or reg/unreg switches.
|
||||
CCommandLineInfo cmdInfo;
|
||||
ParseCommandLine(cmdInfo);
|
||||
|
||||
// App was launched with /Embedding or /Automation switch.
|
||||
// Run app as automation server.
|
||||
if (cmdInfo.m_bRunEmbedded || cmdInfo.m_bRunAutomated)
|
||||
{
|
||||
// Register class factories via CoRegisterClassObject().
|
||||
COleTemplateServer::RegisterAll();
|
||||
}
|
||||
// App was launched with /Unregserver or /Unregister switch. Remove
|
||||
// entries from the registry.
|
||||
else if (cmdInfo.m_nShellCommand == CCommandLineInfo::AppUnregister)
|
||||
{
|
||||
COleObjectFactory::UpdateRegistryAll(FALSE);
|
||||
AfxOleUnregisterTypeLib(_tlid, _wVerMajor, _wVerMinor);
|
||||
return FALSE;
|
||||
}
|
||||
// App was launched standalone or with other switches (e.g. /Register
|
||||
// or /Regserver). Update registry entries, including typelibrary.
|
||||
else
|
||||
{
|
||||
COleObjectFactory::UpdateRegistryAll();
|
||||
AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid);
|
||||
if (cmdInfo.m_nShellCommand == CCommandLineInfo::AppRegister)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
CDecalSupportLibrariesDlg dlg;
|
||||
m_pMainWnd = &dlg;
|
||||
INT_PTR 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
|
||||
}
|
||||
|
||||
// Since the dialog has been closed, return FALSE so that we exit the
|
||||
// application, rather than start the application's message pump.
|
||||
return FALSE;
|
||||
}
|
||||
31
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.h
Normal file
31
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// DecalSupportLibraries.h : main header file for the PROJECT_NAME application
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error include 'stdafx.h' before including this file for PCH
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
|
||||
// CDecalSupportLibrariesApp:
|
||||
// See DecalSupportLibraries.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CDecalSupportLibrariesApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CDecalSupportLibrariesApp();
|
||||
|
||||
// Overrides
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
|
||||
// Implementation
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
extern CDecalSupportLibrariesApp theApp;
|
||||
29
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.idl
Normal file
29
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.idl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// DecalSupportLibraries.idl : type library source for DecalSupportLibraries.exe
|
||||
|
||||
// This file will be processed by the MIDL compiler to produce the
|
||||
// type library (DecalSupportLibraries.tlb).
|
||||
|
||||
[ uuid(24241FCB-6DD4-4B97-8C1F-88A23084AFA5), version(1.0) ]
|
||||
library DecalSupportLibraries
|
||||
{
|
||||
importlib("stdole32.tlb");
|
||||
importlib("stdole2.tlb");
|
||||
|
||||
// Primary dispatch interface for CDecalSupportLibrariesDoc
|
||||
|
||||
[ uuid(586E5AC4-7A88-4CFA-B075-2D7F0E70250D) ]
|
||||
dispinterface IDecalSupportLibraries
|
||||
{
|
||||
properties:
|
||||
|
||||
methods:
|
||||
};
|
||||
|
||||
// Class information for CDecalSupportLibrariesDoc
|
||||
|
||||
[ uuid(29FC66D6-DFC1-45D0-87AD-52D44949DCBC) ]
|
||||
coclass DecalSupportLibraries
|
||||
{
|
||||
[default] dispinterface IDecalSupportLibraries;
|
||||
};
|
||||
};
|
||||
210
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.rc
Normal file
210
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.rc
Normal file
|
|
@ -0,0 +1,210 @@
|
|||
// 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
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 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
|
||||
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_ENU)\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#include ""res\\DecalSupportLibraries.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\r\n"
|
||||
"1 TYPELIB ""DecalSupportLibraries.tlb""\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\\DecalSupportLibraries.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOGEX 0, 0, 235, 55
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
CAPTION "About DecalSupportLibraries"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
||||
BEGIN
|
||||
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
|
||||
LTEXT "DecalSupportLibraries Version 1.0",IDC_STATIC,40,10,119,
|
||||
8,SS_NOPREFIX
|
||||
LTEXT "Copyright (C) 2003",IDC_STATIC,40,25,119,8
|
||||
DEFPUSHBUTTON "OK",IDOK,178,7,50,16,WS_GROUP
|
||||
END
|
||||
|
||||
IDD_DECALSUPPORTLIBRARIES_DIALOG DIALOGEX 0, 0, 193, 46
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE |
|
||||
WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_APPWINDOW
|
||||
CAPTION "DSL 1.0"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,71,23,50,16
|
||||
CTEXT "Decal Support Libraries Vsn 1.0 are Installed.",
|
||||
IDC_STATIC,7,7,179,8
|
||||
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 "040904e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "TODO: <Company name>"
|
||||
VALUE "FileDescription", "TODO: <File description>"
|
||||
VALUE "FileVersion", "1.0.0.1"
|
||||
VALUE "InternalName", "DecalSupportLibraries.exe"
|
||||
VALUE "LegalCopyright", "TODO: (c) <Company name>. All rights reserved."
|
||||
VALUE "OriginalFilename", "DecalSupportLibraries.exe"
|
||||
VALUE "ProductName", "TODO: <Product name>"
|
||||
VALUE "ProductVersion", "1.0.0.1"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_ABOUTBOX, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 228
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 48
|
||||
END
|
||||
|
||||
IDD_DECALSUPPORTLIBRARIES_DIALOG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 186
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 39
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// RT_MANIFEST
|
||||
//
|
||||
|
||||
IDR_MANIFEST RT_MANIFEST "res\\DecalSupportLibraries.manifest"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDP_OLE_INIT_FAILED "OLE initialization failed. Make sure that the OLE libraries are the correct version."
|
||||
IDS_ABOUTBOX "&About DecalSupportLibraries..."
|
||||
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)
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#include "res\DecalSupportLibraries.rc2" // non-Microsoft Visual C++ edited resources
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
1 TYPELIB "DecalSupportLibraries.tlb"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
14
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.reg
Normal file
14
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.reg
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
REGEDIT
|
||||
; This .REG file may be used by your SETUP program.
|
||||
; If a SETUP program is not available, the entries below will be
|
||||
; registered in your InitInstance automatically with a call to
|
||||
; CWinApp::RegisterShellFileTypes and COleObjectFactory::UpdateRegistryAll.
|
||||
|
||||
HKEY_CLASSES_ROOT\DecalSupportLibraries.Application = DecalSupportLibraries Application
|
||||
HKEY_CLASSES_ROOT\DecalSupportLibraries.Application\CLSID = {29FC66D6-DFC1-45D0-87AD-52D44949DCBC}
|
||||
|
||||
HKEY_CLASSES_ROOT\CLSID\{29FC66D6-DFC1-45D0-87AD-52D44949DCBC} = DecalSupportLibraries Application
|
||||
HKEY_CLASSES_ROOT\CLSID\{29FC66D6-DFC1-45D0-87AD-52D44949DCBC}\ProgId = DecalSupportLibraries.Application
|
||||
|
||||
|
||||
HKEY_CLASSES_ROOT\CLSID\{29FC66D6-DFC1-45D0-87AD-52D44949DCBC}\LocalServer32 = DecalSupportLibraries.EXE
|
||||
26
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.sln
Normal file
26
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.sln
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 7.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DecalSupportLibraries", "DecalSupportLibraries.vcproj", "{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}"
|
||||
EndProject
|
||||
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "DSLSetup", "DSLSetup\DSLSetup.vdproj", "{F5C00DF4-0DB7-45F8-B9C2-FA3EAFF4A60D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
ConfigName.0 = Debug
|
||||
ConfigName.1 = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}.Debug.ActiveCfg = Debug|Win32
|
||||
{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}.Debug.Build.0 = Debug|Win32
|
||||
{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}.Release.ActiveCfg = Release|Win32
|
||||
{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}.Release.Build.0 = Release|Win32
|
||||
{F5C00DF4-0DB7-45F8-B9C2-FA3EAFF4A60D}.Debug.ActiveCfg = Debug
|
||||
{F5C00DF4-0DB7-45F8-B9C2-FA3EAFF4A60D}.Release.ActiveCfg = Release
|
||||
{F5C00DF4-0DB7-45F8-B9C2-FA3EAFF4A60D}.Release.Build.0 = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
195
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.vcproj
Normal file
195
Native/DecalSupportLibraries/Attic/DecalSupportLibraries.vcproj
Normal file
|
|
@ -0,0 +1,195 @@
|
|||
<?xml version="1.0" encoding = "Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.00"
|
||||
Name="DecalSupportLibraries"
|
||||
ProjectGUID="{360B2C0C-FF38-4582-83DC-9BCE1EA2D6D8}"
|
||||
Keyword="MFCProj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="2"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
TreatWChar_tAsBuiltInType="TRUE"
|
||||
UsePrecompiledHeader="3"
|
||||
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"
|
||||
TypeLibraryName="$(IntDir)/$(ProjectName).tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Performing registration"
|
||||
CommandLine=""$(TargetPath)" /RegServer"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="2"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
OmitFramePointers="TRUE"
|
||||
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
|
||||
StringPooling="TRUE"
|
||||
MinimalRebuild="FALSE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
TreatWChar_tAsBuiltInType="TRUE"
|
||||
UsePrecompiledHeader="3"
|
||||
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"
|
||||
TypeLibraryName="$(IntDir)/$(ProjectName).tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Performing registration"
|
||||
CommandLine=""$(TargetPath)" /RegServer"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
|
||||
<File
|
||||
RelativePath="DecalSupportLibraries.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DecalSupportLibraries.idl">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DecalSupportLibrariesDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DlgProxy.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="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc">
|
||||
<File
|
||||
RelativePath="DecalSupportLibraries.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DecalSupportLibrariesDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DlgProxy.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="stdafx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest">
|
||||
<File
|
||||
RelativePath="res\DecalSupportLibraries.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="res\DecalSupportLibraries.manifest">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="DecalSupportLibraries.rc">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="res\DecalSupportLibraries.rc2">
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="DecalSupportLibraries.reg">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
202
Native/DecalSupportLibraries/Attic/DecalSupportLibrariesDlg.cpp
Normal file
202
Native/DecalSupportLibraries/Attic/DecalSupportLibrariesDlg.cpp
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
// DecalSupportLibrariesDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "DecalSupportLibraries.h"
|
||||
#include "DecalSupportLibrariesDlg.h"
|
||||
#include "DlgProxy.h"
|
||||
#include "string"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
|
||||
// CAboutDlg dialog used for App About
|
||||
|
||||
class CAboutDlg : public CDialog
|
||||
{
|
||||
public:
|
||||
CAboutDlg();
|
||||
|
||||
// Dialog Data
|
||||
enum { IDD = IDD_ABOUTBOX };
|
||||
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
|
||||
{
|
||||
}
|
||||
|
||||
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlg dialog
|
||||
|
||||
|
||||
|
||||
|
||||
IMPLEMENT_DYNAMIC(CDecalSupportLibrariesDlg, CDialog);
|
||||
CDecalSupportLibrariesDlg::CDecalSupportLibrariesDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CDecalSupportLibrariesDlg::IDD, pParent)
|
||||
{
|
||||
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
|
||||
m_pAutoProxy = NULL;
|
||||
}
|
||||
CDecalSupportLibrariesDlg::~CDecalSupportLibrariesDlg()
|
||||
{
|
||||
// If there is an automation proxy for this dialog, set
|
||||
// its back pointer to this dialog to NULL, so it knows
|
||||
// the dialog has been deleted.
|
||||
if (m_pAutoProxy != NULL)
|
||||
m_pAutoProxy->m_pDialog = NULL;
|
||||
}
|
||||
|
||||
void CDecalSupportLibrariesDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDecalSupportLibrariesDlg, CDialog)
|
||||
ON_WM_SYSCOMMAND()
|
||||
ON_WM_CLOSE()
|
||||
ON_WM_PAINT()
|
||||
ON_WM_QUERYDRAGICON()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlg message handlers
|
||||
|
||||
BOOL CDecalSupportLibrariesDlg::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)
|
||||
{
|
||||
std::string sAbout("Decal Support Libraries") ;
|
||||
|
||||
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
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
}
|
||||
|
||||
void CDecalSupportLibrariesDlg::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 CDecalSupportLibrariesDlg::OnPaint()
|
||||
{
|
||||
if (IsIconic())
|
||||
{
|
||||
CPaintDC dc(this); // device context for painting
|
||||
|
||||
SendMessage(WM_ICONERASEBKGND, reinterpret_cast<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 function to obtain the cursor to display while the user drags
|
||||
// the minimized window.
|
||||
HCURSOR CDecalSupportLibrariesDlg::OnQueryDragIcon()
|
||||
{
|
||||
return static_cast<HCURSOR>(m_hIcon);
|
||||
}
|
||||
|
||||
// Automation servers should not exit when a user closes the UI
|
||||
// if a controller still holds on to one of its objects. These
|
||||
// message handlers make sure that if the proxy is still in use,
|
||||
// then the UI is hidden but the dialog remains around if it
|
||||
// is dismissed.
|
||||
|
||||
void CDecalSupportLibrariesDlg::OnClose()
|
||||
{
|
||||
if (CanExit())
|
||||
CDialog::OnClose();
|
||||
}
|
||||
|
||||
void CDecalSupportLibrariesDlg::OnOK()
|
||||
{
|
||||
if (CanExit())
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
void CDecalSupportLibrariesDlg::OnCancel()
|
||||
{
|
||||
if (CanExit())
|
||||
CDialog::OnCancel();
|
||||
}
|
||||
|
||||
BOOL CDecalSupportLibrariesDlg::CanExit()
|
||||
{
|
||||
// If the proxy object is still around, then the automation
|
||||
// controller is still holding on to this application. Leave
|
||||
// the dialog around, but hide its UI.
|
||||
if (m_pAutoProxy != NULL)
|
||||
{
|
||||
ShowWindow(SW_HIDE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
// DecalSupportLibrariesDlg.h : header file
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
class CDecalSupportLibrariesDlgAutoProxy;
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlg dialog
|
||||
class CDecalSupportLibrariesDlg : public CDialog
|
||||
{
|
||||
DECLARE_DYNAMIC(CDecalSupportLibrariesDlg);
|
||||
friend class CDecalSupportLibrariesDlgAutoProxy;
|
||||
|
||||
// Construction
|
||||
public:
|
||||
CDecalSupportLibrariesDlg(CWnd* pParent = NULL); // standard constructor
|
||||
virtual ~CDecalSupportLibrariesDlg();
|
||||
|
||||
// Dialog Data
|
||||
enum { IDD = IDD_DECALSUPPORTLIBRARIES_DIALOG };
|
||||
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
CDecalSupportLibrariesDlgAutoProxy* m_pAutoProxy;
|
||||
HICON m_hIcon;
|
||||
|
||||
BOOL CanExit();
|
||||
|
||||
// Generated message map functions
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg HCURSOR OnQueryDragIcon();
|
||||
afx_msg void OnClose();
|
||||
virtual void OnOK();
|
||||
virtual void OnCancel();
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
80
Native/DecalSupportLibraries/Attic/DlgProxy.cpp
Normal file
80
Native/DecalSupportLibraries/Attic/DlgProxy.cpp
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
// DlgProxy.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "DecalSupportLibraries.h"
|
||||
#include "DlgProxy.h"
|
||||
#include "DecalSupportLibrariesDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlgAutoProxy
|
||||
|
||||
IMPLEMENT_DYNCREATE(CDecalSupportLibrariesDlgAutoProxy, CCmdTarget)
|
||||
|
||||
CDecalSupportLibrariesDlgAutoProxy::CDecalSupportLibrariesDlgAutoProxy()
|
||||
{
|
||||
EnableAutomation();
|
||||
|
||||
// To keep the application running as long as an automation
|
||||
// object is active, the constructor calls AfxOleLockApp.
|
||||
AfxOleLockApp();
|
||||
|
||||
// Get access to the dialog through the application's
|
||||
// main window pointer. Set the proxy's internal pointer
|
||||
// to point to the dialog, and set the dialog's back pointer to
|
||||
// this proxy.
|
||||
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
|
||||
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
|
||||
ASSERT_KINDOF(CDecalSupportLibrariesDlg, AfxGetApp()->m_pMainWnd);
|
||||
m_pDialog = reinterpret_cast<CDecalSupportLibrariesDlg*>(AfxGetApp()->m_pMainWnd);
|
||||
m_pDialog->m_pAutoProxy = this;
|
||||
}
|
||||
|
||||
CDecalSupportLibrariesDlgAutoProxy::~CDecalSupportLibrariesDlgAutoProxy()
|
||||
{
|
||||
// To terminate the application when all objects created with
|
||||
// with automation, the destructor calls AfxOleUnlockApp.
|
||||
// Among other things, this will destroy the main dialog
|
||||
if (m_pDialog != NULL)
|
||||
m_pDialog->m_pAutoProxy = NULL;
|
||||
AfxOleUnlockApp();
|
||||
}
|
||||
|
||||
void CDecalSupportLibrariesDlgAutoProxy::OnFinalRelease()
|
||||
{
|
||||
// When the last reference for an automation object is released
|
||||
// OnFinalRelease is called. The base class will automatically
|
||||
// deletes the object. Add additional cleanup required for your
|
||||
// object before calling the base class.
|
||||
|
||||
CCmdTarget::OnFinalRelease();
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDecalSupportLibrariesDlgAutoProxy, CCmdTarget)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
BEGIN_DISPATCH_MAP(CDecalSupportLibrariesDlgAutoProxy, CCmdTarget)
|
||||
END_DISPATCH_MAP()
|
||||
|
||||
// Note: we add support for IID_IDecalSupportLibraries to support typesafe binding
|
||||
// from VBA. This IID must match the GUID that is attached to the
|
||||
// dispinterface in the .IDL file.
|
||||
|
||||
// {586E5AC4-7A88-4CFA-B075-2D7F0E70250D}
|
||||
static const IID IID_IDecalSupportLibraries =
|
||||
{ 0x586E5AC4, 0x7A88, 0x4CFA, { 0xB0, 0x75, 0x2D, 0x7F, 0xE, 0x70, 0x25, 0xD } };
|
||||
|
||||
BEGIN_INTERFACE_MAP(CDecalSupportLibrariesDlgAutoProxy, CCmdTarget)
|
||||
INTERFACE_PART(CDecalSupportLibrariesDlgAutoProxy, IID_IDecalSupportLibraries, Dispatch)
|
||||
END_INTERFACE_MAP()
|
||||
|
||||
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
|
||||
// {29FC66D6-DFC1-45D0-87AD-52D44949DCBC}
|
||||
IMPLEMENT_OLECREATE2(CDecalSupportLibrariesDlgAutoProxy, "DecalSupportLibraries.Application", 0x29fc66d6, 0xdfc1, 0x45d0, 0x87, 0xad, 0x52, 0xd4, 0x49, 0x49, 0xdc, 0xbc)
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlgAutoProxy message handlers
|
||||
42
Native/DecalSupportLibraries/Attic/DlgProxy.h
Normal file
42
Native/DecalSupportLibraries/Attic/DlgProxy.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
// DlgProxy.h: header file
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
class CDecalSupportLibrariesDlg;
|
||||
|
||||
|
||||
// CDecalSupportLibrariesDlgAutoProxy command target
|
||||
|
||||
class CDecalSupportLibrariesDlgAutoProxy : public CCmdTarget
|
||||
{
|
||||
DECLARE_DYNCREATE(CDecalSupportLibrariesDlgAutoProxy)
|
||||
|
||||
CDecalSupportLibrariesDlgAutoProxy(); // protected constructor used by dynamic creation
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
CDecalSupportLibrariesDlg* m_pDialog;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
public:
|
||||
virtual void OnFinalRelease();
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
virtual ~CDecalSupportLibrariesDlgAutoProxy();
|
||||
|
||||
// Generated message map functions
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
DECLARE_OLECREATE(CDecalSupportLibrariesDlgAutoProxy)
|
||||
|
||||
// Generated OLE dispatch map functions
|
||||
|
||||
DECLARE_DISPATCH_MAP()
|
||||
DECLARE_INTERFACE_MAP()
|
||||
};
|
||||
|
||||
105
Native/DecalSupportLibraries/Attic/ReadMe.txt
Normal file
105
Native/DecalSupportLibraries/Attic/ReadMe.txt
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
================================================================================
|
||||
MICROSOFT FOUNDATION CLASS LIBRARY : DecalSupportLibraries Project Overview
|
||||
===============================================================================
|
||||
|
||||
The application wizard has created this DecalSupportLibraries 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 DecalSupportLibraries application.
|
||||
|
||||
DecalSupportLibraries.vcproj
|
||||
This is the main project file for VC++ projects generated using an application wizard.
|
||||
It contains information about the version of Visual C++ that generated the file, and
|
||||
information about the platforms, configurations, and project features selected with the
|
||||
application wizard.
|
||||
|
||||
DecalSupportLibraries.h
|
||||
This is the main header file for the application. It includes other
|
||||
project specific headers (including Resource.h) and declares the
|
||||
CDecalSupportLibrariesApp application class.
|
||||
|
||||
DecalSupportLibraries.cpp
|
||||
This is the main application source file that contains the application
|
||||
class CDecalSupportLibrariesApp.
|
||||
|
||||
DecalSupportLibraries.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++. Your project resources are in 1033.
|
||||
|
||||
res\DecalSupportLibraries.ico
|
||||
This is an icon file, which is used as the application's icon. This
|
||||
icon is included by the main resource file DecalSupportLibraries.rc.
|
||||
|
||||
res\DecalSupportLibraries.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.
|
||||
DecalSupportLibraries.reg
|
||||
This is an example .reg file that shows you the kind of registration
|
||||
settings the framework will set for you. You can use this as a .reg
|
||||
file to go along with your application.
|
||||
DecalSupportLibraries.idl
|
||||
This file contains the Interface Description Language source code for the
|
||||
type library of your application.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
The application wizard creates one dialog class and automation proxy class:
|
||||
DecalSupportLibrariesDlg.h, DecalSupportLibrariesDlg.cpp - the dialog
|
||||
These files contain your CDecalSupportLibrariesDlg class. This class defines
|
||||
the behavior of your application's main dialog. The dialog's template is
|
||||
in DecalSupportLibraries.rc, which can be edited in Microsoft Visual C++.
|
||||
DlgProxy.h, DlgProxy.cpp - the automation object
|
||||
These files contain your CDecalSupportLibrariesDlgAutoProxy class. This class
|
||||
is called the Automation proxy class for your dialog, because it
|
||||
takes care of exposing the Automation methods and properties that
|
||||
Automation controllers can use to access your dialog. These methods
|
||||
and properties are not exposed from the dialog class directly, because
|
||||
in the case of a modal dialog-based MFC application it is cleaner and
|
||||
easier to keep the Automation object separate from the user interface.
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Other Features:
|
||||
|
||||
ActiveX Controls
|
||||
The application includes support to use ActiveX controls.
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Other standard files:
|
||||
|
||||
StdAfx.h, StdAfx.cpp
|
||||
These files are used to build a precompiled header (PCH) file
|
||||
named DecalSupportLibraries.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.
|
||||
|
||||
DecalSupportLibraries.manifest
|
||||
Application manifest files are used by Windows XP to describe an applications
|
||||
dependency on specific versions of Side-by-Side assemblies. The loader uses this
|
||||
information to load the appropriate assembly from the assembly cache or private
|
||||
from the application. The Application manifest maybe included for redistribution
|
||||
as an external .manifest file that is installed in the same folder as the application
|
||||
executable or it may be included in the executable in the form of a resource.
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Other notes:
|
||||
|
||||
The application wizard 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 MFC70XXX.DLL from the Microsoft
|
||||
Visual C++ CD-ROM under the Win\System directory to your computer's system or
|
||||
system32 directory, and rename it to be MFCLOC.DLL. ("XXX" stands for the
|
||||
language abbreviation. For example, MFC70DEU.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.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
23
Native/DecalSupportLibraries/Attic/Resource.h
Normal file
23
Native/DecalSupportLibraries/Attic/Resource.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by DecalSupportLibraries.RC
|
||||
//
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDM_ABOUTBOX 0x0010
|
||||
#define IDD_ABOUTBOX 100
|
||||
#define IDP_OLE_INIT_FAILED 100
|
||||
#define IDS_ABOUTBOX 101
|
||||
#define IDD_DECALSUPPORTLIBRARIES_DIALOG 102
|
||||
#define IDR_MANIFEST CREATEPROCESS_MANIFEST_RESOURCE_ID
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
#define _APS_NEXT_RESOURCE_VALUE 129
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#endif
|
||||
#endif
|
||||
7
Native/DecalSupportLibraries/Attic/stdafx.cpp
Normal file
7
Native/DecalSupportLibraries/Attic/stdafx.cpp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// DecalSupportLibraries.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
|
||||
53
Native/DecalSupportLibraries/Attic/stdafx.h
Normal file
53
Native/DecalSupportLibraries/Attic/stdafx.h
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef VC_EXTRALEAN
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
#endif
|
||||
|
||||
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
||||
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
||||
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
|
||||
#define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
|
||||
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
|
||||
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
|
||||
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
|
||||
#endif
|
||||
|
||||
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
|
||||
|
||||
// turns off MFC's hiding of some common and often safely ignored warning messages
|
||||
#define _AFX_ALL_WARNINGS
|
||||
|
||||
#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
|
||||
|
||||
// This macro is the same as IMPLEMENT_OLECREATE, except it passes TRUE
|
||||
// for the bMultiInstance parameter to the COleObjectFactory constructor.
|
||||
// We want a separate instance of this application to be launched for
|
||||
// each automation proxy object requested by automation controllers.
|
||||
#ifndef IMPLEMENT_OLECREATE2
|
||||
#define IMPLEMENT_OLECREATE2(class_name, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||
AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \
|
||||
RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \
|
||||
const AFX_DATADEF GUID class_name::guid = \
|
||||
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } };
|
||||
#endif // IMPLEMENT_OLECREATE2
|
||||
Loading…
Add table
Add a link
Reference in a new issue