Log in

View Full Version : C++ "circular inclusion" help please.


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

ethanf93
June 11th, 2012, 01:37 AM
Visual C++ is complaining that the header files are trying to include each other. What happens if file A contains "#include "file b.h"" and file B contains "#include "file a.h"" is that Visual C++ gets very upset. (This is called a circular dependency)

In this case removing "#include "Form1.h"" from the top of Add_Item should fix the message. Just looking over your code it doesn't look like it'll work anyways because Form1->textBox1 isn't valid.

ssgliberty
June 11th, 2012, 08:28 AM
ok , but how would i make the textbox text go to the list box on form1 , i would still need to include form1 wouldnt i? , and your right Form1->TextBox1 was invalid it should be this. Form1->listBox1->Items ->Add(this->textBox1->Text );
this->textBox1->Text="";

but i still would need to add Form1.h in order for that to work.

ethanf93
June 11th, 2012, 10:35 AM
Form1->listBox1 won't work because listBox1 isn't static. Form1 is a type, rather than an object. You need an actual reference to an object of type Form1.

You're going to have to rearrange your code for this to work, splitting the classes out into individual .cpp files and then having each include the others header would work although I can't say I'm familiar with how C++.NET handles this sort of thing.

ssgliberty
June 11th, 2012, 11:12 AM
ok, what about this? Code_Manager_Cl::Form1::listBox2->Items ->Add(Description_Input->Text );
Description_Input->Text="";

EDIT:

I Dont know what i did but i changed it back to message box and it wont work , it used to work when i switched it back plz help.,
Debug output:
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Add_Item'
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(15): error C2011: 'Code_Manager_Cl::Add_Item' : 'class' type redefinition
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Add_Item'
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(17): error C2011: 'Code_Manager_Cl::Form1' : 'class' type redefinition
1> c:\users\owner\desktop\my shit\my shit\code stuff\code stuff\hack,codeing stuff\recreate programs\code_manager_cl\debug\code_manager_cl.exe : see declaration of 'Code_Manager_Cl::Form1'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Form1:
#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:
#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) {
MessageBox::Show("Funtion not implemented yet!");
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Close ();
}
private: System::Void Data_Input_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
};
}