diff --git a/TitanEngine.sln b/TitanEngine.sln
index afab9a5..75e344e 100644
--- a/TitanEngine.sln
+++ b/TitanEngine.sln
@@ -5,7 +5,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanEngine", "TitanEngine\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanUnitTest", "TitanUnitTest\TitanUnitTest.vcxproj", "{5B5AB3CD-4D32-43B0-8840-E05C9483381D}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanScriptGui", "TitanScriptGui\TitanScriptGui.vcxproj", "{864AC964-6CC4-4738-A811-61C216C1A36D}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TitanScriptGui", "TitanScriptGui\TitanScriptGui.vcxproj", "{49C88677-C374-4AE2-B431-8F3B424BF245}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -29,12 +29,12 @@ Global
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|Win32.ActiveCfg = Release|Win32
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|Win32.Build.0 = Release|Win32
{5B5AB3CD-4D32-43B0-8840-E05C9483381D}.Release|x64.ActiveCfg = Release|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Debug|Win32.ActiveCfg = Debug|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Debug|Win32.Build.0 = Debug|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Debug|x64.ActiveCfg = Debug|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Release|Win32.ActiveCfg = Release|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Release|Win32.Build.0 = Release|Win32
- {864AC964-6CC4-4738-A811-61C216C1A36D}.Release|x64.ActiveCfg = Release|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|Win32.ActiveCfg = Debug|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|Win32.Build.0 = Debug|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Debug|x64.ActiveCfg = Debug|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Release|Win32.ActiveCfg = Release|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Release|Win32.Build.0 = Release|Win32
+ {49C88677-C374-4AE2-B431-8F3B424BF245}.Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/TitanScriptGui/AssemblyInfo.cpp b/TitanScriptGui/AssemblyInfo.cpp
deleted file mode 100644
index a1e7ee5..0000000
--- a/TitanScriptGui/AssemblyInfo.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#include "stdafx.h"
-
-using namespace System;
-using namespace System::Reflection;
-using namespace System::Runtime::CompilerServices;
-using namespace System::Runtime::InteropServices;
-using namespace System::Security::Permissions;
-
-//
-// Allgemeine Informationen über eine Assembly werden über die folgenden
-// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
-// die mit einer Assembly verknüpft sind.
-//
-[assembly:AssemblyTitleAttribute("TitanScriptGui")];
-[assembly:AssemblyDescriptionAttribute("")];
-[assembly:AssemblyConfigurationAttribute("")];
-[assembly:AssemblyCompanyAttribute("")];
-[assembly:AssemblyProductAttribute("TitanScriptGui")];
-[assembly:AssemblyCopyrightAttribute("Copyright (c) 2014")];
-[assembly:AssemblyTrademarkAttribute("")];
-[assembly:AssemblyCultureAttribute("")];
-
-//
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder für die Revisions- und Buildnummer den Standard
-// übernehmen, indem Sie "*" eingeben:
-
-[assembly:AssemblyVersionAttribute("1.0.*")];
-
-[assembly:ComVisible(false)];
-
-[assembly:CLSCompliantAttribute(true)];
-
-[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
diff --git a/TitanScriptGui/Form1.h b/TitanScriptGui/Form1.h
deleted file mode 100644
index 9d228b4..0000000
--- a/TitanScriptGui/Form1.h
+++ /dev/null
@@ -1,268 +0,0 @@
-#pragma once
-
-#include "TitanEngine.h"
-#include "TitanScript.h"
-
-namespace TitanScriptGui {
-
-using namespace System;
-using namespace System::ComponentModel;
-using namespace System::Collections;
-using namespace System::Windows::Forms;
-using namespace System::Data;
-using namespace System::Drawing;
-using namespace System::Runtime::InteropServices;
-
-public delegate void log_callback_delegate( const char* str, eLogType log_type );
-///
-/// Zusammenfassung für Form1
-///
-public ref class Form1 : public System::Windows::Forms::Form
-{
-public:
- Form1(void)
- {
- InitializeComponent();
- InitializeTitanScript();
- }
-
-protected:
- ///
- /// Verwendete Ressourcen bereinigen.
- ///
- ~Form1()
- {
- if (components)
- {
- delete components;
- }
- }
-private:
- System::Windows::Forms::TextBox^ textBox_targetPath;
-protected:
-private:
-
-protected:
-private:
- System::Windows::Forms::Label^ label1;
-private:
- System::Windows::Forms::Button^ openTarget;
-private:
-
-private:
-
-private:
- System::Windows::Forms::Label^ label2;
-private:
- System::Windows::Forms::TextBox^ textBox_scriptPath;
-private:
- System::Windows::Forms::Button^ openScript;
-private:
-
-private:
-
-private:
-
-private:
- System::Windows::Forms::GroupBox^ groupBox1;
-private:
- System::Windows::Forms::TextBox^ logBox;
-private:
-
-private:
- System::Windows::Forms::Button^ run;
-private:
-
-private:
- System::Windows::Forms::OpenFileDialog^ openFileDialog1;
-
-private:
- tScripterLoadFileA load_file;
- tScripterExecuteWithTitanMistA exec;
- tScripterSetLogCallback set_log_callback;
-
- log_callback_delegate^ logdelegate;
-
-private:
- ///
- /// Erforderliche Designervariable.
- ///
- System::ComponentModel::Container ^components;
-
- #pragma region Windows Form Designer generated code
- ///
- /// Erforderliche Methode für die Designerunterstützung.
- /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
- ///
- void InitializeComponent(void)
- {
- this->textBox_targetPath = (gcnew System::Windows::Forms::TextBox());
- this->label1 = (gcnew System::Windows::Forms::Label());
- this->openTarget = (gcnew System::Windows::Forms::Button());
- this->label2 = (gcnew System::Windows::Forms::Label());
- this->textBox_scriptPath = (gcnew System::Windows::Forms::TextBox());
- this->openScript = (gcnew System::Windows::Forms::Button());
- this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
- this->logBox = (gcnew System::Windows::Forms::TextBox());
- this->run = (gcnew System::Windows::Forms::Button());
- this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
- this->groupBox1->SuspendLayout();
- this->SuspendLayout();
- //
- // textBox_targetPath
- //
- this->textBox_targetPath->Location = System::Drawing::Point(60, 12);
- this->textBox_targetPath->Name = L"textBox_targetPath";
- this->textBox_targetPath->Size = System::Drawing::Size(168, 20);
- this->textBox_targetPath->TabIndex = 0;
- //
- // label1
- //
- this->label1->AutoSize = true;
- this->label1->Location = System::Drawing::Point(10, 12);
- this->label1->Name = L"label1";
- this->label1->Size = System::Drawing::Size(44, 13);
- this->label1->TabIndex = 1;
- this->label1->Text = L"[Target]";
- //
- // openTarget
- //
- this->openTarget->Location = System::Drawing::Point(234, 12);
- this->openTarget->Name = L"openTarget";
- this->openTarget->Size = System::Drawing::Size(75, 23);
- this->openTarget->TabIndex = 2;
- this->openTarget->Text = L"[Open...]";
- this->openTarget->UseVisualStyleBackColor = true;
- this->openTarget->Click += gcnew System::EventHandler(this, &Form1::openTarget_Click);
- //
- // label2
- //
- this->label2->AutoSize = true;
- this->label2->Location = System::Drawing::Point(10, 44);
- this->label2->Name = L"label2";
- this->label2->Size = System::Drawing::Size(40, 13);
- this->label2->TabIndex = 3;
- this->label2->Text = L"[Script]";
- //
- // textBox_scriptPath
- //
- this->textBox_scriptPath->Location = System::Drawing::Point(60, 44);
- this->textBox_scriptPath->Name = L"textBox_scriptPath";
- this->textBox_scriptPath->Size = System::Drawing::Size(168, 20);
- this->textBox_scriptPath->TabIndex = 4;
- //
- // openScript
- //
- this->openScript->Location = System::Drawing::Point(234, 44);
- this->openScript->Name = L"openScript";
- this->openScript->Size = System::Drawing::Size(75, 23);
- this->openScript->TabIndex = 5;
- this->openScript->Text = L"[Open...]";
- this->openScript->UseVisualStyleBackColor = true;
- this->openScript->Click += gcnew System::EventHandler(this, &Form1::openScript_Click);
- //
- // groupBox1
- //
- this->groupBox1->Controls->Add(this->logBox);
- this->groupBox1->Location = System::Drawing::Point(13, 70);
- this->groupBox1->Name = L"groupBox1";
- this->groupBox1->Size = System::Drawing::Size(294, 285);
- this->groupBox1->TabIndex = 6;
- this->groupBox1->TabStop = false;
- this->groupBox1->Text = L"[Log]";
- //
- // logBox
- //
- this->logBox->Location = System::Drawing::Point(6, 19);
- this->logBox->Multiline = true;
- this->logBox->Name = L"logBox";
- this->logBox->Size = System::Drawing::Size(282, 260);
- this->logBox->TabIndex = 0;
- //
- // run
- //
- this->run->Location = System::Drawing::Point(122, 361);
- this->run->Name = L"run";
- this->run->Size = System::Drawing::Size(75, 23);
- this->run->TabIndex = 7;
- this->run->Text = L"[Run]";
- this->run->UseVisualStyleBackColor = true;
- this->run->Click += gcnew System::EventHandler(this, &Form1::run_Click);
- //
- // openFileDialog1
- //
- this->openFileDialog1->FileName = L"openFileDialog1";
- //
- // Form1
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->ClientSize = System::Drawing::Size(319, 389);
- this->Controls->Add(this->run);
- this->Controls->Add(this->groupBox1);
- this->Controls->Add(this->openScript);
- this->Controls->Add(this->textBox_scriptPath);
- this->Controls->Add(this->label2);
- this->Controls->Add(this->openTarget);
- this->Controls->Add(this->label1);
- this->Controls->Add(this->textBox_targetPath);
- this->Name = L"Form1";
- this->Text = L"TitanScriptGUI";
- this->groupBox1->ResumeLayout(false);
- this->groupBox1->PerformLayout();
- this->ResumeLayout(false);
- this->PerformLayout();
-
- }
- #pragma endregion
-
- void InitializeTitanScript(void) {
- load_file = GetTSFunctionPointer( LoadFileA );
- exec = GetTSFunctionPointer( ExecuteWithTitanMistA );
- set_log_callback = GetTSFunctionPointer( SetLogCallback );
-
- //register log callback
- logdelegate = gcnew log_callback_delegate(this, &Form1::log_callback);
- IntPtr thunk = System::Runtime::InteropServices::Marshal::GetFunctionPointerForDelegate(logdelegate);
- set_log_callback((fLogCallback)(void*)thunk);
- }
-
-private:
- System::Void openTarget_Click(System::Object^ sender, System::EventArgs^ e) {
- if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK) {
- textBox_targetPath->Text = openFileDialog1->FileName;
- }
- }
-private:
- System::Void openScript_Click(System::Object^ sender, System::EventArgs^ e) {
- if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK) {
- textBox_scriptPath->Text = openFileDialog1->FileName;
- }
- }
-private:
- System::Void run_Click(System::Object^ sender, System::EventArgs^ e) {
- logBox->Clear();
-
- const char* scriptPath = (const char*)(void*) Marshal::StringToHGlobalAnsi(textBox_scriptPath->Text);
- const char* targetPath = (const char*)(void*) Marshal::StringToHGlobalAnsi(textBox_targetPath->Text);
-
- if(!load_file(scriptPath)) {
- logBox->AppendText("[Error] Couldnt load the script");
- }
-
- bool ret = exec(targetPath, "dump.exe");
-
- Marshal::FreeHGlobal(IntPtr((void*)scriptPath));
- Marshal::FreeHGlobal(IntPtr((void*)targetPath));
- }
-
-private:
- void log_callback( const char* str, eLogType log_type ) {
- logBox->AppendText(gcnew String(str));
- }
-
-};
-
-
-}
-
diff --git a/TitanScriptGui/Form1.resX b/TitanScriptGui/Form1.resX
deleted file mode 100644
index 753eb0c..0000000
--- a/TitanScriptGui/Form1.resX
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 7, 12
-
-
\ No newline at end of file
diff --git a/TitanScriptGui/ReadMe.txt b/TitanScriptGui/ReadMe.txt
deleted file mode 100644
index 9be8edb..0000000
--- a/TitanScriptGui/ReadMe.txt
+++ /dev/null
@@ -1,45 +0,0 @@
-========================================================================
- ANWENDUNG: TitanScriptGui-Projektübersicht
-========================================================================
-
-Diese TitanScriptGui-Anwendung wurde vom Anwendungs-Assistenten
-für Sie erstellt.
-
-Diese Datei bietet eine Übersicht über den Inhalt der einzelnen Dateien,
-aus denen Ihre TitanScriptGui-Anwendung besteht.
-
-TitanScriptGui.vcxproj
- Dies ist die Hauptprojektdatei für VC++-Projekte, die mit dem
- Anwendungs-Assistenten generiert werden.
- Sie enthält Informationen über die Version von Visual C++, mit der die
- Datei generiert wurde, sowie über die Plattformen, Konfigurationen und
- Projektfunktionen, die im Anwendungs-Assistenten ausgewählt wurden.
-
-TitanScriptGui.vcxproj.filters
- Dies ist die Filterdatei für VC++-Projekte, die mithilfe eines
- Anwendungs-Assistenten erstellt werden.
- Sie enthält Informationen über die Zuordnung zwischen den Dateien im
- Projekt und den Filtern. Diese Zuordnung wird in der IDE zur Darstellung
- der Gruppierung von Dateien mit ähnlichen Erweiterungen unter einem
- bestimmten Knoten verwendet (z. B. sind CPP-Dateien dem Filter
- "Quelldateien" zugeordnet).
-
-TitanScriptGui.cpp
- Dies ist die Hauptquelldatei der Anwendung.
- Enthält den Code zum Anzeigen des Formulars.
-
-Form1.h
- Enthält die Implementierung der Formularklasse und der InitializeComponent()-Funktion.
-
-AssemblyInfo.cpp
- Enthält benutzerdefinierte Attribute zum Ändern von Assemblymetadaten.
-
-/////////////////////////////////////////////////////////////////////////////
-Andere Standarddateien:
-
-StdAfx.h, StdAfx.cpp
- Diese Dateien werden verwendet, um eine vorkompilierte Headerdatei
- (PCH-Datei) mit dem Namen "TitanScriptGui.pch und eine
- vorkompilierte Typendatei mit dem Namen "StdAfx.obj" zu erstellen.
-
-/////////////////////////////////////////////////////////////////////////////
diff --git a/TitanScriptGui/TitanScriptGui.cpp b/TitanScriptGui/TitanScriptGui.cpp
index 5e9baf4..56de296 100644
--- a/TitanScriptGui/TitanScriptGui.cpp
+++ b/TitanScriptGui/TitanScriptGui.cpp
@@ -1,22 +1,122 @@
#include "stdafx.h"
-#include "Form1.h"
+#include "TitanScriptGui.h"
+#include "TitanEngine.h"
+#include "TitanScript.h"
-using namespace TitanScriptGui;
+HINSTANCE hInst;
+HWND hLogBox;
+TCHAR FileNameTarget[MAX_PATH] = {};
+TCHAR FileNameScript[MAX_PATH] = {};
-[STAThreadAttribute]
-int main(array ^args)
+INT_PTR CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
+bool GetFileDialog(TCHAR[MAX_PATH]);
+void AddLogMessage(const char* szLogMessage, eLogType Type);
+
+tScripterLoadFileA load_file = NULL;
+tScripterExecuteWithTitanMistA exec = NULL;
+tScripterSetLogCallback set_log_callback = NULL;
+
+int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
- if ( !ExtensionManagerIsPluginLoaded( "TitanScript" ) || !ExtensionManagerIsPluginEnabled( "TitanScript" ) ) {
- System::Windows::Forms::MessageBox::Show("TitanScript failed to load!", "[ERROR]", MessageBoxButtons::OK, MessageBoxIcon::Error);
- return -1;
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpCmdLine);
+
+ DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINWINDOW), NULL, &WndProc);
+ ExitProcess(NULL);
+}
+
+INT_PTR CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+
+ switch (message)
+ {
+ case WM_INITDIALOG: {
+ hLogBox = GetDlgItem(hWnd, IDC_LOG);
+
+ //make sure TitanScript is available
+ if ( !ExtensionManagerIsPluginLoaded( "TitanScript" ) || !ExtensionManagerIsPluginEnabled( "TitanScript" ) ) {
+ AddLogMessage("TitanScript failed to load", TS_LOG_ERROR);
+ AddLogMessage("Ensure plugins\\x86\\TitanScript.dll exists !", TS_LOG_ERROR);
+
+ EnableWindow(GetDlgItem(hWnd, IDC_RUN ), FALSE);
+ } else {
+ load_file = GetTSFunctionPointer( LoadFileA );
+ exec = GetTSFunctionPointer( ExecuteWithTitanMistA );
+ set_log_callback = GetTSFunctionPointer( SetLogCallback );
+
+ set_log_callback(&AddLogMessage);
+ }
+
+ break;
}
+ case WM_COMMAND:
+ switch (LOWORD(wParam))
+ {
+ case IDC_BROWSETARGET: {
+ if(GetFileDialog(FileNameTarget))
+ {
+ SetDlgItemText(hWnd, IDC_TARGETPATH, FileNameTarget);
+ }
+ break;
+ }
+ case IDC_BROWSESCRIPT: {
+ if(GetFileDialog(FileNameScript))
+ {
+ SetDlgItemText(hWnd, IDC_SCRIPTPATH, FileNameScript);
+ }
+ break;
+ }
+ case IDC_RUN: {
+ char buf[MAX_PATH] = {0};
- // Aktivieren visueller Effekte von Windows XP, bevor Steuerelemente erstellt werden
- Application::EnableVisualStyles();
- Application::SetCompatibleTextRenderingDefault(false);
+ wcstombs(buf, FileNameScript, sizeof(buf));
+ if(!load_file(buf)) {
+ AddLogMessage("Script failed to load", TS_LOG_ERROR);
+ break;
+ }
- // Hauptfenster erstellen und ausführen
- Application::Run(gcnew Form1());
+ wcstombs(buf, FileNameTarget, sizeof(buf));
+ if(!exec(buf, "dump.exe")) {
+ AddLogMessage("Failed to execute", TS_LOG_ERROR);
+ break;
+ }
+ break;
+ }
+
+ }
+ break;
+ case WM_CLOSE:
+ EndDialog(hWnd, NULL);
+ break;
+ default:
+ return false;
+ }
return 0;
}
+
+bool GetFileDialog(TCHAR Buffer[MAX_PATH])
+{
+ OPENFILENAME sOpenFileName = {0};
+ const TCHAR szFilterString[] = _T("All Files \0*.*\0\0");
+ const TCHAR szDialogTitle[] = _T("TitanScriptGUI");
+
+ Buffer[0] = 0;
+
+ sOpenFileName.lStructSize = sizeof(sOpenFileName);
+ sOpenFileName.lpstrFilter = szFilterString;
+ sOpenFileName.lpstrFile = Buffer;
+ sOpenFileName.nMaxFile = MAX_PATH;
+ sOpenFileName.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_LONGNAMES | OFN_EXPLORER | OFN_HIDEREADONLY;
+ sOpenFileName.lpstrTitle = szDialogTitle;
+
+ return (TRUE == GetOpenFileName(&sOpenFileName));
+}
+
+void AddLogMessage(const char* szLogMessage, eLogType Type)
+{
+ TCHAR buf[100] = {0};
+ mbstowcs(buf, szLogMessage, sizeof(buf));
+ LRESULT cSelect = SendMessage(hLogBox, LB_INSERTSTRING, (WPARAM)-1, (LPARAM)buf);
+ SendMessage(hLogBox, LB_SETCURSEL, cSelect, NULL);
+}
\ No newline at end of file
diff --git a/TitanScriptGui/TitanScriptGui.h b/TitanScriptGui/TitanScriptGui.h
new file mode 100644
index 0000000..d00d47e
--- /dev/null
+++ b/TitanScriptGui/TitanScriptGui.h
@@ -0,0 +1,3 @@
+#pragma once
+
+#include "resource.h"
diff --git a/TitanScriptGui/TitanScriptGui.rc b/TitanScriptGui/TitanScriptGui.rc
new file mode 100644
index 0000000..055a826
Binary files /dev/null and b/TitanScriptGui/TitanScriptGui.rc differ
diff --git a/TitanScriptGui/TitanScriptGui.vcxproj b/TitanScriptGui/TitanScriptGui.vcxproj
index 810f828..71b23c3 100644
--- a/TitanScriptGui/TitanScriptGui.vcxproj
+++ b/TitanScriptGui/TitanScriptGui.vcxproj
@@ -11,22 +11,20 @@
- {864AC964-6CC4-4738-A811-61C216C1A36D}
- v4.0
- ManagedCProj
+ {49C88677-C374-4AE2-B431-8F3B424BF245}
+ Win32Proj
TitanScriptGui
Application
true
- Pure
Unicode
Application
false
- Pure
+ true
Unicode
@@ -41,55 +39,54 @@
true
+ $(SolutionDir)\$(IntDir)x32\
false
+ $(SolutionDir)\$(IntDir)x32\
+ Use
Level3
Disabled
- WIN32;_DEBUG;%(PreprocessorDefinitions)
- Use
-
-
+ WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)
- true
- TitanEngine.lib
Windows
- main
+ true
+ TitanEngine.lib;%(AdditionalDependencies)
Level3
- WIN32;NDEBUG;%(PreprocessorDefinitions)
Use
-
-
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
- true
-
-
Windows
- main
+ true
+ true
+ true
+ TitanEngine.lib;%(AdditionalDependencies)
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
Create
Create
@@ -97,22 +94,7 @@
-
- CppForm
-
-
-
-
-
-
-
-
-
-
-
- Form1.h
- Designer
-
+
diff --git a/TitanScriptGui/TitanScriptGui.vcxproj.filters b/TitanScriptGui/TitanScriptGui.vcxproj.filters
index 5e21018..16c706f 100644
--- a/TitanScriptGui/TitanScriptGui.vcxproj.filters
+++ b/TitanScriptGui/TitanScriptGui.vcxproj.filters
@@ -16,29 +16,18 @@
-
- Ressourcendateien
-
-
- Quelldateien
-
-
- Quelldateien
-
-
- Quelldateien
-
-
-
-
- Headerdateien
-
Headerdateien
-
+
+ Headerdateien
+
+
+ Headerdateien
+
+
Headerdateien
@@ -49,13 +38,16 @@
-
+
+ Quelldateien
+
+
+ Quelldateien
+
+
+
+
Ressourcendateien
-
-
- Ressourcendateien
-
-
\ No newline at end of file
diff --git a/TitanScriptGui/app.ico b/TitanScriptGui/app.ico
deleted file mode 100644
index 3a5525f..0000000
Binary files a/TitanScriptGui/app.ico and /dev/null differ
diff --git a/TitanScriptGui/app.rc b/TitanScriptGui/app.rc
deleted file mode 100644
index 04d5f65..0000000
Binary files a/TitanScriptGui/app.rc and /dev/null differ
diff --git a/TitanScriptGui/resource.h b/TitanScriptGui/resource.h
index d5ac7c4..35fd2f8 100644
Binary files a/TitanScriptGui/resource.h and b/TitanScriptGui/resource.h differ
diff --git a/TitanScriptGui/stdafx.cpp b/TitanScriptGui/stdafx.cpp
index e3761bd..106bd4f 100644
--- a/TitanScriptGui/stdafx.cpp
+++ b/TitanScriptGui/stdafx.cpp
@@ -4,4 +4,5 @@
#include "stdafx.h"
-
+// TODO: Auf zusätzliche Header verweisen, die in STDAFX.H
+// und nicht in dieser Datei erforderlich sind.
diff --git a/TitanScriptGui/stdafx.h b/TitanScriptGui/stdafx.h
index 22db9aa..7ca0378 100644
--- a/TitanScriptGui/stdafx.h
+++ b/TitanScriptGui/stdafx.h
@@ -1,6 +1,13 @@
-// stdafx.h : Includedatei für Standardsystem-Includedateien
-// oder häufig verwendete projektspezifische Includedateien,
-// die nur in unregelmäßigen Abständen geändert werden.
#pragma once
-// TODO: Hier auf zusätzliche Header, die das Programm erfordert, verweisen.
+#include "targetver.h"
+
+#define WIN32_LEAN_AND_MEAN
+#include
+#include
+
+#include
+#include
+#include
+#include
+
diff --git a/TitanScriptGui/targetver.h b/TitanScriptGui/targetver.h
new file mode 100644
index 0000000..05ba7d4
--- /dev/null
+++ b/TitanScriptGui/targetver.h
@@ -0,0 +1,3 @@
+#pragma once
+
+#include