Two days ago I installed the express edition of Visual C++ 2005.
This is a part of Visual Studio 2005.
I tried to open
RAM Stretcher project.
The new programming platform informed me that the old version files (Visual Studio 2003) must be converted to new one.
But GKR the program could not run and the project file modified (GKR I don't know why).....
Thus I must rewrite the
RAM Stretcher again GKR it is boring....
For this reason I uninstalled it.
Moreover it does not support WinAPI (the compilation failed dramatically).
GKR here is a simple code (Visual C++ 2003) but shows a GKR message instead of the common "Hello world" in many C, C++ books.
Code:
#pragma once
namespace GKR
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
public __gc class Form1 : public System::Windows::Forms::Form
{
public: Form1(void)
{
Application::EnableVisualStyles();
InitializeComponent();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Button * button1;
private: System::ComponentModel::Container * components;
void InitializeComponent(void)
{
this->button1 = new System::Windows::Forms::Button();
this->SuspendLayout();
//
// button1
//
this->button1->FlatStyle = System::Windows::Forms::FlatStyle::System;
this->button1->Location = System::Drawing::Point(104, 120);
this->button1->Name = S"button1";
this->button1->TabIndex = 0;
this->button1->Text = S"button1";
this->button1->Click += new System::EventHandler(this, button1_Click);
//
// Form1
//
this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
this->ClientSize = System::Drawing::Size(292, 266);
this->Controls->Add(this->button1);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
this->MaximizeBox = false;
this->MinimizeBox = false;
this->Name = S"Form1";
this->Text = S"Form1";
this->ResumeLayout(false);
}
private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
{
MessageBox::Show("Visual Studio 2005 made me GKR.......","My first impression of");
}
};
}
The similar program under Visual Studio 2005 differs on some points (definitions of functions, no *) etc...
I am wondering why........
GKR.......................
GKR.......................