Help is welcome.

This is a discussion on Help is welcome. within the C++ Programming forums, part of the General Programming Boards category; I started C++ 2 days ago, and i'm really not very good at it. I need a little help... A ...

  1. #1
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114

    Help is welcome.

    I started C++ 2 days ago, and i'm really not very good at it. I need a little help... A lot of help actually. I'll post the ccp code and the 'form1.h' for you guys, but I really dont know what to do.
    http://i33.photobucket.com/albums/d57/Simmboy/help.jpg
    CPP:
    Code:
    // Calc.cpp : main project file.
    
    #include "stdafx.h"
    #include "Form1.h"
    
    using namespace Calc;
    
    [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;
    }
    	
    	#include <iostream>
    	using namespace std;
    	int Winmain()
    
    {
    	float ElementalEffect;
    	float MAG;
    	float Amp;
    	float BaseSpellAttack;
    	float SkillMastery;
    	float INT;
    	float MaxMAtt;
    	float MinMAtt;
    	
    	cin>>INT;
    	
    	cin>>MAG;
    	
    	cin>> BaseSpellAttack;
    	
    	cin>>SkillMastery;
    	
    	cin>>ElementalEffect;
    	
    	cin>>Amp;
    	
    	
    	
    	MinMAtt = (MAG*3+SkillMastery+MAG*0.003365 +INT*0.26)*BaseSpellAttack/100+(BaseSpellAttack*Amp/100)*ElementalEffect;
    	MaxMAtt = (MAG*3.3+MAG*MAG*0.003365+INT*0.5)*(BaseSpellAttack*Amp/100)*ElementalEffect;
    	
    	
    	cout<<MinMAtt<<endl;
    	
    	cout<<MaxMAtt<<endl;
    	
    	cin.get();
    	return 0;	
    }
    'Form1.h':
    Code:
    #pragma once
    
    
    namespace Calc {
    
    	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
    	///
    	/// WARNING: If you change the name of this class, you will need to change the
    	///          'Resource File Name' property for the managed resource compiler tool
    	///          associated with all .resx files this class depends on.  Otherwise,
    	///          the designers will not be able to interact properly with localized
    	///          resources associated with this form.
    	/// </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;
    			}
    		}
    
    	private: System::Windows::Forms::TextBox^  textBox1;
    	private: System::Windows::Forms::TextBox^  textBox2;
    	private: System::Windows::Forms::TextBox^  textBox3;
    	private: System::Windows::Forms::TextBox^  textBox4;
    	private: System::Windows::Forms::TextBox^  textBox5;
    	private: System::Windows::Forms::TextBox^  textBox6;
    	private: System::Windows::Forms::TextBox^  textBox7;
    	private: System::Windows::Forms::TextBox^  textBox8;
    	private: System::Windows::Forms::CheckedListBox^  checkedListBox1;
    	private: System::Windows::Forms::TextBox^  textBox9;
    	private: System::Windows::Forms::NumericUpDown^  numericUpDown1;
    	private: System::Windows::Forms::TextBox^  textBox10;
    	private: System::Windows::Forms::TextBox^  textBox11;
    	private: System::Windows::Forms::TextBox^  textBox12;
    	private: System::Windows::Forms::TextBox^  textBox13;
    	private: System::Windows::Forms::TextBox^  textBox14;
    	private: System::Windows::Forms::Button^  button1;
    	private: System::Windows::Forms::ProgressBar^  progressBar1;
    
    
    
    
    
    	private: System::ComponentModel::IContainer^  components;
    
    
    
    
    	protected: 
    
    
    	private:
    		/// <summary>
    		/// Required designer variable.
    		/// </summary>
    
    
    #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->textBox1 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox2 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox3 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox4 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox5 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox6 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox7 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox8 = (gcnew System::Windows::Forms::TextBox());
    			this->checkedListBox1 = (gcnew System::Windows::Forms::CheckedListBox());
    			this->textBox9 = (gcnew System::Windows::Forms::TextBox());
    			this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
    			this->textBox10 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox11 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox12 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox13 = (gcnew System::Windows::Forms::TextBox());
    			this->textBox14 = (gcnew System::Windows::Forms::TextBox());
    			this->button1 = (gcnew System::Windows::Forms::Button());
    			this->progressBar1 = (gcnew System::Windows::Forms::ProgressBar());
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->BeginInit();
    			this->SuspendLayout();
    			// 
    			// textBox1
    			// 
    			this->textBox1->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox1->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox1->Location = System::Drawing::Point(25, 27);
    			this->textBox1->Name = L"textBox1";
    			this->textBox1->ReadOnly = true;
    			this->textBox1->Size = System::Drawing::Size(57, 32);
    			this->textBox1->TabIndex = 1;
    			this->textBox1->Text = L"INT";
    			// 
    			// textBox2
    			// 
    			this->textBox2->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox2->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox2->Location = System::Drawing::Point(169, 27);
    			this->textBox2->Name = L"textBox2";
    			this->textBox2->Size = System::Drawing::Size(57, 32);
    			this->textBox2->TabIndex = 2;
    			// 
    			// textBox3
    			// 
    			this->textBox3->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox3->Font = (gcnew System::Drawing::Font(L"Batik Regular", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox3->Location = System::Drawing::Point(25, 76);
    			this->textBox3->Name = L"textBox3";
    			this->textBox3->ReadOnly = true;
    			this->textBox3->Size = System::Drawing::Size(135, 24);
    			this->textBox3->TabIndex = 3;
    			this->textBox3->Text = L"Magic attack";
    			// 
    			// textBox4
    			// 
    			this->textBox4->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox4->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox4->Location = System::Drawing::Point(169, 70);
    			this->textBox4->Name = L"textBox4";
    			this->textBox4->Size = System::Drawing::Size(57, 32);
    			this->textBox4->TabIndex = 4;
    			// 
    			// textBox5
    			// 
    			this->textBox5->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox5->Font = (gcnew System::Drawing::Font(L"Batik Regular", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox5->Location = System::Drawing::Point(25, 119);
    			this->textBox5->Name = L"textBox5";
    			this->textBox5->ReadOnly = true;
    			this->textBox5->Size = System::Drawing::Size(135, 24);
    			this->textBox5->TabIndex = 5;
    			this->textBox5->Text = L"Spell Attack";
    			this->textBox5->TextChanged += gcnew System::EventHandler(this, &Form1::textBox5_TextChanged);
    			// 
    			// textBox6
    			// 
    			this->textBox6->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox6->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox6->Location = System::Drawing::Point(169, 113);
    			this->textBox6->Name = L"textBox6";
    			this->textBox6->Size = System::Drawing::Size(57, 32);
    			this->textBox6->TabIndex = 6;
    			// 
    			// textBox7
    			// 
    			this->textBox7->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox7->Font = (gcnew System::Drawing::Font(L"Batik Regular", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox7->Location = System::Drawing::Point(25, 162);
    			this->textBox7->Name = L"textBox7";
    			this->textBox7->ReadOnly = true;
    			this->textBox7->Size = System::Drawing::Size(135, 23);
    			this->textBox7->TabIndex = 7;
    			this->textBox7->Text = L"Spell Mastery";
    			// 
    			// textBox8
    			// 
    			this->textBox8->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox8->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox8->Location = System::Drawing::Point(169, 155);
    			this->textBox8->Name = L"textBox8";
    			this->textBox8->Size = System::Drawing::Size(57, 32);
    			this->textBox8->TabIndex = 8;
    			// 
    			// checkedListBox1
    			// 
    			this->checkedListBox1->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->checkedListBox1->CheckOnClick = true;
    			this->checkedListBox1->Cursor = System::Windows::Forms::Cursors::Cross;
    			this->checkedListBox1->FormattingEnabled = true;
    			this->checkedListBox1->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L".50", L".75", L"1.00", L"1.25", L"1.50"});
    			this->checkedListBox1->Location = System::Drawing::Point(232, 37);
    			this->checkedListBox1->Name = L"checkedListBox1";
    			this->checkedListBox1->Size = System::Drawing::Size(154, 99);
    			this->checkedListBox1->TabIndex = 1;
    			this->checkedListBox1->ThreeDCheckBoxes = true;
    			this->checkedListBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::checkedListBox1_SelectedIndexChanged);
    			// 
    			// textBox9
    			// 
    			this->textBox9->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox9->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 15, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox9->Location = System::Drawing::Point(232, 3);
    			this->textBox9->Name = L"textBox9";
    			this->textBox9->ReadOnly = true;
    			this->textBox9->Size = System::Drawing::Size(165, 28);
    			this->textBox9->TabIndex = 10;
    			this->textBox9->Text = L"Element damage (Tick \'1\' if none)";
    			this->textBox9->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
    			// 
    			// numericUpDown1
    			// 
    			this->numericUpDown1->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->numericUpDown1->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->numericUpDown1->Location = System::Drawing::Point(295, 180);
    			this->numericUpDown1->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {134, 0, 0, 0});
    			this->numericUpDown1->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
    			this->numericUpDown1->Name = L"numericUpDown1";
    			this->numericUpDown1->Size = System::Drawing::Size(47, 35);
    			this->numericUpDown1->TabIndex = 11;
    			this->numericUpDown1->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
    			this->numericUpDown1->ValueChanged += gcnew System::EventHandler(this, &Form1::numericUpDown1_ValueChanged);
    			// 
    			// textBox10
    			// 
    			this->textBox10->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox10->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox10->Location = System::Drawing::Point(234, 139);
    			this->textBox10->Name = L"textBox10";
    			this->textBox10->ReadOnly = true;
    			this->textBox10->Size = System::Drawing::Size(163, 35);
    			this->textBox10->TabIndex = 12;
    			this->textBox10->Text = L"Amp, choose 100 if none";
    			// 
    			// textBox11
    			// 
    			this->textBox11->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox11->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox11->Location = System::Drawing::Point(28, 197);
    			this->textBox11->Name = L"textBox11";
    			this->textBox11->ReadOnly = true;
    			this->textBox11->Size = System::Drawing::Size(41, 40);
    			this->textBox11->TabIndex = 13;
    			this->textBox11->Text = L"Min";
    			// 
    			// textBox12
    			// 
    			this->textBox12->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox12->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox12->Location = System::Drawing::Point(28, 243);
    			this->textBox12->Name = L"textBox12";
    			this->textBox12->ReadOnly = true;
    			this->textBox12->Size = System::Drawing::Size(41, 40);
    			this->textBox12->TabIndex = 14;
    			this->textBox12->Text = L"Max";
    			// 
    			// textBox13
    			// 
    			this->textBox13->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox13->Font = (gcnew System::Drawing::Font(L"Batik Regular", 20.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox13->Location = System::Drawing::Point(86, 197);
    			this->textBox13->Name = L"textBox13";
    			this->textBox13->Size = System::Drawing::Size(99, 35);
    			this->textBox13->TabIndex = 15;
    			// 
    			// textBox14
    			// 
    			this->textBox14->BackColor = System::Drawing::SystemColors::ScrollBar;
    			this->textBox14->Font = (gcnew System::Drawing::Font(L"Batik Regular", 20.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->textBox14->Location = System::Drawing::Point(86, 243);
    			this->textBox14->Name = L"textBox14";
    			this->textBox14->Size = System::Drawing::Size(99, 35);
    			this->textBox14->TabIndex = 16;
    			// 
    			// button1
    			// 
    			this->button1->Font = (gcnew System::Drawing::Font(L"Planet Benson 2", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->button1->Location = System::Drawing::Point(221, 224);
    			this->button1->Name = L"button1";
    			this->button1->Size = System::Drawing::Size(140, 53);
    			this->button1->TabIndex = 17;
    			this->button1->Text = L"Calculate!";
    			this->button1->UseVisualStyleBackColor = true;
    			// 
    			// progressBar1
    			// 
    			this->progressBar1->Location = System::Drawing::Point(400, -1);
    			this->progressBar1->Name = L"progressBar1";
    			this->progressBar1->Size = System::Drawing::Size(27, 285);
    			this->progressBar1->TabIndex = 18;
    			// 
    			// Form1
    			// 
    			this->AutoScaleDimensions = System::Drawing::SizeF(9, 14);
    			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
    			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
    			this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
    			this->ClientSize = System::Drawing::Size(426, 284);
    			this->Controls->Add(this->progressBar1);
    			this->Controls->Add(this->button1);
    			this->Controls->Add(this->textBox14);
    			this->Controls->Add(this->textBox13);
    			this->Controls->Add(this->textBox12);
    			this->Controls->Add(this->textBox11);
    			this->Controls->Add(this->textBox10);
    			this->Controls->Add(this->numericUpDown1);
    			this->Controls->Add(this->textBox9);
    			this->Controls->Add(this->checkedListBox1);
    			this->Controls->Add(this->textBox8);
    			this->Controls->Add(this->textBox7);
    			this->Controls->Add(this->textBox6);
    			this->Controls->Add(this->textBox5);
    			this->Controls->Add(this->textBox4);
    			this->Controls->Add(this->textBox3);
    			this->Controls->Add(this->textBox2);
    			this->Controls->Add(this->textBox1);
    			this->Cursor = System::Windows::Forms::Cursors::Cross;
    			this->DoubleBuffered = true;
    			this->Font = (gcnew System::Drawing::Font(L"Australian Sunrise", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
    				static_cast<System::Byte>(0)));
    			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
    			this->Margin = System::Windows::Forms::Padding(4);
    			this->Name = L"Form1";
    			this->Opacity = 0.9;
    			this->Text = L"Mage damage calculator by Brad Szymanski";
    			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
    			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->EndInit();
    			this->ResumeLayout(false);
    			this->PerformLayout();
    
    		}
    #pragma endregion
    	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
    			 }
    	private: System::Void textBox1_TextChanged(System::Object^  sender, System::EventArgs^  e) {
    			 }
    	private: System::Void textBox5_TextChanged(System::Object^  sender, System::EventArgs^  e) {
    			 }
    private: System::Void checkedListBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
    		 }
    private: System::Void numericUpDown1_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
    		 }
    private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
    		 }
    };
    }
    Any help? Thanks in advance.

  2. #2
    "Why use dynamic memory?"
    Join Date
    Aug 2006
    Posts
    186
    what kind of IDE are you using?? what kind of library are you using?? WinAPI32 ??
    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
    Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<

  3. #3
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    The Visual Studio Integrated Development Environment? Is that what you mean? -I hardly know anything about C++ lol-

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    It's rarely a good idea to start C++ with GUI codes. Try the tutorial on this site first. GUI programming requires a lot more than basic C++ (a lot more than what one can possibly learn in two days).

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,544
    Nor is what was posted actually C++, but an MS specific abomination.

    Great, if you want to hitch your wagon to everything Microsoft does for the rest of your life.

    http://www.rafb.net/efnet_cpp/books/
    Start with say "Accelerated C++".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    Oh! I have been with C++ since 3 months......and I don't understand a word in your prog! You got sooooooo far just in 2 days!!

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Yeah, he managed to click a button on a wizard.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    C++ dot net is poised to become a standard from what I understand.
    Anyway, this is managed C++ (aka C++ dot net) and not native C++, so that's why it looks so strange.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Small correction: there is no C++.Net, and Managed C++ ("C++ with Managed Extensions for C++") is something different from C++/CLI, the actual language undergoing pseudo-standardization in the ECMA.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,606
    What's the difference between the two?
    C++ + dot net access is basically C++ dot net, but is also referred to CLI or Managed I think?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    So is anybody able to show me how to do this? I'd be very grateful if somebody could.
    Thanks again.

  12. #12
    Registered User
    Join Date
    Dec 2007
    Location
    Rochester
    Posts
    40
    I believe Cyberfish already helped you:

    It's rarely a good idea to start C++ with GUI codes. Try the tutorial on this site first. GUI programming requires a lot more than basic C++ (a lot more than what one can possibly learn in two days).

  13. #13
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    So there's a tutorial for exactly what I need? I'll take a look through them. Thanks.

  14. #14
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Basically, what you need is to delete the project and start over. This time, select "Win32 Console Application" and check the "Empty Project" option in the project wizard.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  15. #15
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    Sounds like a plan. Can anybody reccomend me tutorials to remake it? Or walk me through it? Sorry about this, but this situation is about as fun for me as it is for you guys. (And gals) Thanks once again.
    Last edited by bradszy; 01-23-2008 at 12:32 AM.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21