×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

请弟兄们帮忙,我想连接.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
    • ??