ssgliberty
June 10th, 2012, 07:39 PM
Hi im trying to make a text box on Add_Item.h display its text in a listbox on Form1.h, but i cant include Form1.h to Add_Item.h
Form 1:
#include "Add_Item.h"
#pragma once
namespace Code_Manager_Cl {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
protected:
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::MenuStrip^ menuStrip1;
private: System::Windows::Forms::ToolStripMenuItem^ fileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ exitToolStripMenuItem;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::SaveFileDialog^ saveFileDialog1;
private: System::Windows::Forms::ToolStripMenuItem^ addToolStripMenuItem;
private: System::Windows::Forms::ListBox^ listBox2;
private: System::Windows::Forms::OpenFileDialog^ openFileDialog1;
private: System::Windows::Forms::PictureBox^ pictureBox1;
private: System::Windows::Forms::RichTextBox^ richTextBox1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->button1 = (gcnew System::Windows::Forms::Button());
this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->addToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->button2 = (gcnew System::Windows::Forms::Button());
this->saveFileDialog1 = (gcnew System::Windows::Forms::SaveFileDialog());
this->listBox2 = (gcnew System::Windows::Forms::ListBox());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());
this->menuStrip1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->BeginInit();
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label1->Location = System::Drawing::Point(83, 126);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(129, 31);
this->label1->TabIndex = 2;
this->label1->Text = L"Code List";
//
// label2
//
this->label2->AutoSize = true;
this->label2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label2->Location = System::Drawing::Point(397, 126);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(144, 31);
this->label2->TabIndex = 3;
this->label2->Text = L"Code Data";
//
// button1
//
this->button1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button1->ForeColor = System::Drawing::Color::White;
this->button1->Location = System::Drawing::Point(12, 573);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(80, 37);
this->button1->TabIndex = 4;
this->button1->Text = L"Add";
this->button1->UseVisualStyleBackColor = false;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// menuStrip1
//
this->menuStrip1->BackColor = System::Drawing::SystemColors::Control;
this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->fileToolStripMenuItem});
this->menuStrip1->Location = System::Drawing::Point(0, 0);
this->menuStrip1->Name = L"menuStrip1";
this->menuStrip1->RenderMode = System::Windows::Forms::ToolStripRenderMode::Professional;
this->menuStrip1->Size = System::Drawing::Size(638, 24);
this->menuStrip1->TabIndex = 5;
this->menuStrip1->Text = L"menuStrip1";
//
// fileToolStripMenuItem
//
this->fileToolStripMenuItem->BackColor = System::Drawing::SystemColors::Control;
this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->addToolStripMenuItem,
this->exitToolStripMenuItem});
this->fileToolStripMenuItem->ForeColor = System::Drawing::SystemColors::ActiveCaptionText;
this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
this->fileToolStripMenuItem->Text = L"File";
//
// addToolStripMenuItem
//
this->addToolStripMenuItem->Name = L"addToolStripMenuItem";
this->addToolStripMenuItem->Size = System::Drawing::Size(96, 22);
this->addToolStripMenuItem->Text = L"Add";
this->addToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::addToolStripMenuItem_Click);
//
// exitToolStripMenuItem
//
this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
this->exitToolStripMenuItem->Size = System::Drawing::Size(96, 22);
this->exitToolStripMenuItem->Text = L"Exit";
this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem_Click);
//
// button2
//
this->button2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button2->ForeColor = System::Drawing::Color::White;
this->button2->Location = System::Drawing::Point(321, 573);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(80, 37);
this->button2->TabIndex = 6;
this->button2->Text = L"Save";
this->button2->UseVisualStyleBackColor = false;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// listBox2
//
this->listBox2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->listBox2->ForeColor = System::Drawing::SystemColors::Window;
this->listBox2->FormattingEnabled = true;
this->listBox2->Location = System::Drawing::Point(12, 160);
this->listBox2->Name = L"listBox2";
this->listBox2->Size = System::Drawing::Size(304, 303);
this->listBox2->TabIndex = 7;
//
// openFileDialog1
//
this->openFileDialog1->FileName = L"openFileDialog1";
//
// pictureBox1
//
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
this->pictureBox1->Location = System::Drawing::Point(0, 27);
this->pictureBox1->Name = L"pictureBox1";
this->pictureBox1->Size = System::Drawing::Size(638, 97);
this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->pictureBox1->TabIndex = 8;
this->pictureBox1->TabStop = false;
this->pictureBox1->Click += gcnew System::EventHandler(this, &Form1::pictureBox1_Click_1);
//
// richTextBox1
//
this->richTextBox1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->richTextBox1->ForeColor = System::Drawing::SystemColors::Window;
this->richTextBox1->Location = System::Drawing::Point(321, 160);
this->richTextBox1->Name = L"richTextBox1";
this->richTextBox1->ReadOnly = true;
this->richTextBox1->Size = System::Drawing::Size(305, 394);
this->richTextBox1->TabIndex = 9;
this->richTextBox1->Text = L"";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->ClientSize = System::Drawing::Size(638, 622);
this->Controls->Add(this->richTextBox1);
this->Controls->Add(this->pictureBox1);
this->Controls->Add(this->listBox2);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->menuStrip1);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MainMenuStrip = this->menuStrip1;
this->MaximizeBox = false;
this->Name = L"Form1";
this->Text = L"CheatersLounge Cheat Device Manager ~ By Gtlcpimp © Gtlcpimp 2012";
this->menuStrip1->ResumeLayout(false);
this->menuStrip1->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->EndInit();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Add_Item ^Add_ItemWindow = gcnew Add_Item ();
Add_ItemWindow -> ShowDialog ();
}
private: System::Void exitToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
Close ();
}
private: System::Void saveFileDialog1_FileOk(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBox::Show("Funtion not implemented yet!");
}
private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void addToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
Add_Item ^Add_ItemWindow = gcnew Add_Item ();
Add_ItemWindow -> ShowDialog ();
}
private: System::Void pictureBox1_Click_1(System::Object^ sender, System::EventArgs^ e) {
}
};
}
Add_Item:
#include "Form1.h"
#pragma once
namespace Code_Manager_Cl {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Add_Item
/// </summary>
public ref class Add_Item : public System::Windows::Forms::Form
{
public:
Add_Item(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Add_Item()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::RichTextBox^ Data_Input;
private: System::Windows::Forms::TextBox^ Description_Input;
protected:
protected:
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Add_Item::typeid));
this->Data_Input = (gcnew System::Windows::Forms::RichTextBox());
this->Description_Input = (gcnew System::Windows::Forms::TextBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// Data_Input
//
this->Data_Input->Location = System::Drawing::Point(167, 40);
this->Data_Input->Name = L"Data_Input";
this->Data_Input->Size = System::Drawing::Size(313, 365);
this->Data_Input->TabIndex = 0;
this->Data_Input->Text = L"";
this->Data_Input->TextChanged += gcnew System::EventHandler(this, &Add_Item::Data_Input_TextChanged);
//
// Description_Input
//
this->Description_Input->Location = System::Drawing::Point(167, 12);
this->Description_Input->Name = L"Description_Input";
this->Description_Input->Size = System::Drawing::Size(313, 20);
this->Description_Input->TabIndex = 1;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label1->Location = System::Drawing::Point(60, 12);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(93, 20);
this->label1->TabIndex = 2;
this->label1->Text = L"Description:";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label2->Location = System::Drawing::Point(105, 38);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(48, 20);
this->label2->TabIndex = 3;
this->label2->Text = L"Data:";
//
// button1
//
this->button1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button1->ForeColor = System::Drawing::Color::White;
this->button1->Location = System::Drawing::Point(12, 323);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(80, 37);
this->button1->TabIndex = 5;
this->button1->Text = L"Add";
this->button1->UseVisualStyleBackColor = false;
this->button1->Click += gcnew System::EventHandler(this, &Add_Item::button1_Click);
//
// button2
//
this->button2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->button2->ForeColor = System::Drawing::Color::White;
this->button2->Location = System::Drawing::Point(12, 366);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(80, 37);
this->button2->TabIndex = 6;
this->button2->Text = L"Cancel";
this->button2->UseVisualStyleBackColor = false;
this->button2->Click += gcnew System::EventHandler(this, &Add_Item::button2_Click);
//
// Add_Item
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->CancelButton = this->button2;
this->ClientSize = System::Drawing::Size(492, 415);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->Description_Input);
this->Controls->Add(this->Data_Input);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MaximizeBox = false;
this->Name = L"Add_Item";
this->Text = L"CheatersLounge Code Editor ~ By Gtlcpimp © Gtlcpimp 2012";
this->Load += gcnew System::EventHandler(this, &Add_Item::Add_Item_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Add_Item_Load(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
this->Description_Input->Items ->Add(Form1->textBox1->Text );
Form1->textBox1->Text="";
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Close ();
}
private: System::Void Data_Input_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
};
}
main .cpp file
// Code_Manager_Cl.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
using namespace Code_Manager_Cl;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
Debug output:
1>------ Build started: Project: Code_Manager_Cl, Configuration: Debug Win32 ------
1> Add_Item.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Form1.h(1): fatal error C1014: too many include files : depth = 1024
1> Code_Manager_Cl.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Add_Item.h(1): fatal error C1014: too many include files : depth = 1024
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
im trying to copy another program for fun/learning. , i will attatch the program im attempting to copy.
whoops forgot to attatch it here it is.
Double posts merged. Also, attaching executables without any form of signing isn't allowed, as I have no idea if it contains malicious code or not. ~TheMatrix
Form 1:
#include "Add_Item.h"
#pragma once
namespace Code_Manager_Cl {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
protected:
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::MenuStrip^ menuStrip1;
private: System::Windows::Forms::ToolStripMenuItem^ fileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ exitToolStripMenuItem;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::SaveFileDialog^ saveFileDialog1;
private: System::Windows::Forms::ToolStripMenuItem^ addToolStripMenuItem;
private: System::Windows::Forms::ListBox^ listBox2;
private: System::Windows::Forms::OpenFileDialog^ openFileDialog1;
private: System::Windows::Forms::PictureBox^ pictureBox1;
private: System::Windows::Forms::RichTextBox^ richTextBox1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->button1 = (gcnew System::Windows::Forms::Button());
this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->addToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->button2 = (gcnew System::Windows::Forms::Button());
this->saveFileDialog1 = (gcnew System::Windows::Forms::SaveFileDialog());
this->listBox2 = (gcnew System::Windows::Forms::ListBox());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());
this->menuStrip1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->BeginInit();
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label1->Location = System::Drawing::Point(83, 126);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(129, 31);
this->label1->TabIndex = 2;
this->label1->Text = L"Code List";
//
// label2
//
this->label2->AutoSize = true;
this->label2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label2->Location = System::Drawing::Point(397, 126);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(144, 31);
this->label2->TabIndex = 3;
this->label2->Text = L"Code Data";
//
// button1
//
this->button1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button1->ForeColor = System::Drawing::Color::White;
this->button1->Location = System::Drawing::Point(12, 573);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(80, 37);
this->button1->TabIndex = 4;
this->button1->Text = L"Add";
this->button1->UseVisualStyleBackColor = false;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// menuStrip1
//
this->menuStrip1->BackColor = System::Drawing::SystemColors::Control;
this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->fileToolStripMenuItem});
this->menuStrip1->Location = System::Drawing::Point(0, 0);
this->menuStrip1->Name = L"menuStrip1";
this->menuStrip1->RenderMode = System::Windows::Forms::ToolStripRenderMode::Professional;
this->menuStrip1->Size = System::Drawing::Size(638, 24);
this->menuStrip1->TabIndex = 5;
this->menuStrip1->Text = L"menuStrip1";
//
// fileToolStripMenuItem
//
this->fileToolStripMenuItem->BackColor = System::Drawing::SystemColors::Control;
this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->addToolStripMenuItem,
this->exitToolStripMenuItem});
this->fileToolStripMenuItem->ForeColor = System::Drawing::SystemColors::ActiveCaptionText;
this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
this->fileToolStripMenuItem->Text = L"File";
//
// addToolStripMenuItem
//
this->addToolStripMenuItem->Name = L"addToolStripMenuItem";
this->addToolStripMenuItem->Size = System::Drawing::Size(96, 22);
this->addToolStripMenuItem->Text = L"Add";
this->addToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::addToolStripMenuItem_Click);
//
// exitToolStripMenuItem
//
this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
this->exitToolStripMenuItem->Size = System::Drawing::Size(96, 22);
this->exitToolStripMenuItem->Text = L"Exit";
this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem_Click);
//
// button2
//
this->button2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button2->ForeColor = System::Drawing::Color::White;
this->button2->Location = System::Drawing::Point(321, 573);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(80, 37);
this->button2->TabIndex = 6;
this->button2->Text = L"Save";
this->button2->UseVisualStyleBackColor = false;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// listBox2
//
this->listBox2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->listBox2->ForeColor = System::Drawing::SystemColors::Window;
this->listBox2->FormattingEnabled = true;
this->listBox2->Location = System::Drawing::Point(12, 160);
this->listBox2->Name = L"listBox2";
this->listBox2->Size = System::Drawing::Size(304, 303);
this->listBox2->TabIndex = 7;
//
// openFileDialog1
//
this->openFileDialog1->FileName = L"openFileDialog1";
//
// pictureBox1
//
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
this->pictureBox1->Location = System::Drawing::Point(0, 27);
this->pictureBox1->Name = L"pictureBox1";
this->pictureBox1->Size = System::Drawing::Size(638, 97);
this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->pictureBox1->TabIndex = 8;
this->pictureBox1->TabStop = false;
this->pictureBox1->Click += gcnew System::EventHandler(this, &Form1::pictureBox1_Click_1);
//
// richTextBox1
//
this->richTextBox1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->richTextBox1->ForeColor = System::Drawing::SystemColors::Window;
this->richTextBox1->Location = System::Drawing::Point(321, 160);
this->richTextBox1->Name = L"richTextBox1";
this->richTextBox1->ReadOnly = true;
this->richTextBox1->Size = System::Drawing::Size(305, 394);
this->richTextBox1->TabIndex = 9;
this->richTextBox1->Text = L"";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->ClientSize = System::Drawing::Size(638, 622);
this->Controls->Add(this->richTextBox1);
this->Controls->Add(this->pictureBox1);
this->Controls->Add(this->listBox2);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->menuStrip1);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MainMenuStrip = this->menuStrip1;
this->MaximizeBox = false;
this->Name = L"Form1";
this->Text = L"CheatersLounge Cheat Device Manager ~ By Gtlcpimp © Gtlcpimp 2012";
this->menuStrip1->ResumeLayout(false);
this->menuStrip1->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->EndInit();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Add_Item ^Add_ItemWindow = gcnew Add_Item ();
Add_ItemWindow -> ShowDialog ();
}
private: System::Void exitToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
Close ();
}
private: System::Void saveFileDialog1_FileOk(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBox::Show("Funtion not implemented yet!");
}
private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void addToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
Add_Item ^Add_ItemWindow = gcnew Add_Item ();
Add_ItemWindow -> ShowDialog ();
}
private: System::Void pictureBox1_Click_1(System::Object^ sender, System::EventArgs^ e) {
}
};
}
Add_Item:
#include "Form1.h"
#pragma once
namespace Code_Manager_Cl {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Add_Item
/// </summary>
public ref class Add_Item : public System::Windows::Forms::Form
{
public:
Add_Item(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Add_Item()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::RichTextBox^ Data_Input;
private: System::Windows::Forms::TextBox^ Description_Input;
protected:
protected:
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Add_Item::typeid));
this->Data_Input = (gcnew System::Windows::Forms::RichTextBox());
this->Description_Input = (gcnew System::Windows::Forms::TextBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// Data_Input
//
this->Data_Input->Location = System::Drawing::Point(167, 40);
this->Data_Input->Name = L"Data_Input";
this->Data_Input->Size = System::Drawing::Size(313, 365);
this->Data_Input->TabIndex = 0;
this->Data_Input->Text = L"";
this->Data_Input->TextChanged += gcnew System::EventHandler(this, &Add_Item::Data_Input_TextChanged);
//
// Description_Input
//
this->Description_Input->Location = System::Drawing::Point(167, 12);
this->Description_Input->Name = L"Description_Input";
this->Description_Input->Size = System::Drawing::Size(313, 20);
this->Description_Input->TabIndex = 1;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label1->Location = System::Drawing::Point(60, 12);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(93, 20);
this->label1->TabIndex = 2;
this->label1->Text = L"Description:";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
this->label2->Location = System::Drawing::Point(105, 38);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(48, 20);
this->label2->TabIndex = 3;
this->label2->Text = L"Data:";
//
// button1
//
this->button1->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button1->ForeColor = System::Drawing::Color::White;
this->button1->Location = System::Drawing::Point(12, 323);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(80, 37);
this->button1->TabIndex = 5;
this->button1->Text = L"Add";
this->button1->UseVisualStyleBackColor = false;
this->button1->Click += gcnew System::EventHandler(this, &Add_Item::button1_Click);
//
// button2
//
this->button2->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->button2->ForeColor = System::Drawing::Color::White;
this->button2->Location = System::Drawing::Point(12, 366);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(80, 37);
this->button2->TabIndex = 6;
this->button2->Text = L"Cancel";
this->button2->UseVisualStyleBackColor = false;
this->button2->Click += gcnew System::EventHandler(this, &Add_Item::button2_Click);
//
// Add_Item
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->CancelButton = this->button2;
this->ClientSize = System::Drawing::Size(492, 415);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->Description_Input);
this->Controls->Add(this->Data_Input);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MaximizeBox = false;
this->Name = L"Add_Item";
this->Text = L"CheatersLounge Code Editor ~ By Gtlcpimp © Gtlcpimp 2012";
this->Load += gcnew System::EventHandler(this, &Add_Item::Add_Item_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Add_Item_Load(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
this->Description_Input->Items ->Add(Form1->textBox1->Text );
Form1->textBox1->Text="";
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Close ();
}
private: System::Void Data_Input_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
};
}
main .cpp file
// Code_Manager_Cl.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
using namespace Code_Manager_Cl;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
Debug output:
1>------ Build started: Project: Code_Manager_Cl, Configuration: Debug Win32 ------
1> Add_Item.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Form1.h(1): fatal error C1014: too many include files : depth = 1024
1> Code_Manager_Cl.cpp
1>c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\code_manager_cl\Add_Item.h(1): fatal error C1014: too many include files : depth = 1024
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
im trying to copy another program for fun/learning. , i will attatch the program im attempting to copy.
whoops forgot to attatch it here it is.
Double posts merged. Also, attaching executables without any form of signing isn't allowed, as I have no idea if it contains malicious code or not. ~TheMatrix