本文发表在 rolia.net 枫下论坛#using <mscorlib.dll>
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Drawing ;
using namespace System::Windows::Forms ;
using namespace System::Collections ;
using namespace System::ComponentModel ;
using namespace ADODB;
//using namespace System::Data;
__gc class dtmdb : public ADODB::DataSet
{
public:
dtmdb();
};
__gc class WelForm : public Form
{
public:
WelForm();
private:
Button *btnClose, *btnStart;
void CloseClick(Object *Sender, EventArgs *Args);
void StartClick(Object *Sender, EventArgs *Args);
};
WelForm::WelForm()
{
this->Text = S"Transfering Data From *.mdb to MySQL ...";
btnClose = new Button;
btnClose->Location = Point(180,225);
btnClose->Text = S"&Close";
btnClose->Click += new EventHandler(this,CloseClick);
this->Controls ->Add (btnClose);
btnStart = new Button;
btnStart->Location = Point(30,225);
btnStart->Text = S"&Start";
btnStart->Click += new EventHandler(this,CloseClick);
this->Controls ->Add (btnStart);
}
void WelForm::CloseClick (Object *Sender, EventArgs *Args)
{
Close();
}
int __stdcall WinMain()
{
WelForm *WF=new WelForm();
Application::Run (WF);
}
void WelForm::StartClick(Object *Sender, EventArgs *Args)
{
}更多精彩文章及讨论,请光临枫下论坛 rolia.net
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Drawing ;
using namespace System::Windows::Forms ;
using namespace System::Collections ;
using namespace System::ComponentModel ;
using namespace ADODB;
//using namespace System::Data;
__gc class dtmdb : public ADODB::DataSet
{
public:
dtmdb();
};
__gc class WelForm : public Form
{
public:
WelForm();
private:
Button *btnClose, *btnStart;
void CloseClick(Object *Sender, EventArgs *Args);
void StartClick(Object *Sender, EventArgs *Args);
};
WelForm::WelForm()
{
this->Text = S"Transfering Data From *.mdb to MySQL ...";
btnClose = new Button;
btnClose->Location = Point(180,225);
btnClose->Text = S"&Close";
btnClose->Click += new EventHandler(this,CloseClick);
this->Controls ->Add (btnClose);
btnStart = new Button;
btnStart->Location = Point(30,225);
btnStart->Text = S"&Start";
btnStart->Click += new EventHandler(this,CloseClick);
this->Controls ->Add (btnStart);
}
void WelForm::CloseClick (Object *Sender, EventArgs *Args)
{
Close();
}
int __stdcall WinMain()
{
WelForm *WF=new WelForm();
Application::Run (WF);
}
void WelForm::StartClick(Object *Sender, EventArgs *Args)
{
}更多精彩文章及讨论,请光临枫下论坛 rolia.net