×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

请弟兄们帮忙,我想连接.mdb数据库,程序该怎么写?我把程序也贴上了。

本文发表在 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
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 请弟兄们帮忙,我想连接.mdb数据库,程序该怎么写?我把程序也贴上了。
    本文发表在 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
    • ??