############## code:
#pragma once
namespace infonet {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Diagnostics;
///
/// 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.
///
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
///
/// Clean up any resources being used.
///
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ database;
private: System::Windows::Forms::LinkLabel^ mysqladminLink;
protected:
protected:
protected:
protected:
private:
///
/// Required designer variable.
///
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->database = (gcnew System::Windows::Forms::Button());
this->mysqladminLink = (gcnew System::Windows::Forms::LinkLabel());
this->SuspendLayout();
//
// database
//
this->database->BackColor = System::Drawing::Color::Transparent;
this->database->FlatAppearance->BorderSize = 0;
this->database->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
this->database->Location = System::Drawing::Point(32, 129);
this->database->Name = L"database";
this->database->Size = System::Drawing::Size(64, 67);
this->database->TabIndex = 0;
this->database->UseVisualStyleBackColor = false;
//
// mysqladminLink
//
this->mysqladminLink->ActiveLinkColor = System::Drawing::Color::Transparent;
this->mysqladminLink->AutoSize = true;
this->mysqladminLink->BackColor = System::Drawing::Color::Transparent;
this->mysqladminLink->ForeColor = System::Drawing::Color::Transparent;
this->mysqladminLink->Image = (cli::safe_cast(resources->GetObject(L"mysqladminLink.Image")));
this->mysqladminLink->LinkArea = System::Windows::Forms::LinkArea(0, 100);
this->mysqladminLink->LinkBehavior = System::Windows::Forms::LinkBehavior::NeverUnderline;
this->mysqladminLink->LinkColor = System::Drawing::Color::Transparent;
this->mysqladminLink->Location = System::Drawing::Point(244, 72);
this->mysqladminLink->Name = L"mysqladminLink";
this->mysqladminLink->Size = System::Drawing::Size(21, 17);
this->mysqladminLink->TabIndex = 1;
this->mysqladminLink->TabStop = true;
this->mysqladminLink->Text = L"sss";
this->mysqladminLink->UseCompatibleTextRendering = true;
this->mysqladminLink->VisitedLinkColor = System::Drawing::Color::Transparent;
this->mysqladminLink->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &Form1::mysqladmin_LinkClicked);
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackgroundImage = (cli::safe_cast(resources->GetObject(L"$this.BackgroundImage")));
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
this->ClientSize = System::Drawing::Size(344, 348);
this->Controls->Add(this->mysqladminLink);
this->Controls->Add(this->database);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
this->Name = L"Form1";
this->Text = L"Enomaly Control";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void mysqladmin_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
ProcessStartInfo * sInfo = new ProcessStartInfo(e->Link->LinkData->ToString());
Process::Start(sInfo);
}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
mysqladminLink->Links->Remove(mysqladminLink->Links->get_Item(0));
mysqladminLink->Links->Add(0, mysqladminLink->Text->Length, S"http://localhost:8080/phpmysqladmin/");
}
};
}
############# output of debug
------ Rebuild All started: Project: infonet, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'infonet', configuration 'Debug|Win32'
Compiling...
stdafx.cpp
Compiling...
infonet.cpp
c:\documents and settings\khaz\my documents\visual studio 2005\projects\infonet\infonet\Form1.h(23) : error C2059: syntax error : 'public'
c:\documents and settings\khaz\my documents\visual studio 2005\projects\infonet\infonet\Form1.h(23) : error C2059: syntax error : 'public'
c:\documents and settings\khaz\my documents\visual studio 2005\projects\infonet\infonet\Form1.h(24) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\khaz\my documents\visual studio 2005\projects\infonet\infonet\Form1.h(24) : error C2447: '{' : missing function header (old-style formal list?)
.\infonet.cpp(9) : error C2065: 'array' : undeclared identifier
.\infonet.cpp(9) : error C2275: 'System::String' : illegal use of this type as an expression
.\infonet.cpp(9) : error C2059: syntax error : '>'
.\infonet.cpp(10) : error C2143: syntax error : missing ';' before '{'
.\infonet.cpp(10) : error C2447: '{' : missing function header (old-style formal list?)
AssemblyInfo.cpp
Generating Code...
Build log was saved at "file://c:\Documents and Settings\Khaz\My Documents\Visual Studio 2005\Projects\infonet\infonet\Debug\BuildLog.htm"
infonet - 9 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========