• Monday , 24 July 2017

Visual C++ Tutorial 2 -Windows Forms Application: Mysql Connection Part 1

Code Canyon



C++ Windows Form Application Mysql Connection Using Visual C++ Windows Forms with MySQL C++ Windows Form Application Mysql Connection Mysql And …

Original source

3d Ocean

Related Posts

29 Comments

  1. Mikeh Miiikeh
    June 30, 2017 at 10:00

    i don´t understand why visualc++ organize the code inside a header file rather than cpp one…

  2. Mikeh Miiikeh
    June 30, 2017 at 10:00

    German maybe… but its fine..

  3. Jurijus Pacalovas
    June 30, 2017 at 10:00

    I am an applications programmer.

  4. Rudyard Kipling
    June 30, 2017 at 10:00

    1.25 speed does work fine, I haven't used VCpp since VS6 So I am just looking to see the changes, I have been using VB C# F# Python and Ruby with VS, Cpp is a great language, It is Just so old there has to be something soon besides Java, I am not a fan of having to run JVM, that sways me away from Java, but Cpp has been the mainstream language for way too many years "C with classes". Visual Haskell would be sweet that just came to me, I use many languages, VS Delphi and C++ builder are great having to code GUI's and have them look awesome is time consuming and horrible, you know it doesn't matter if your app is the best at what it does people will always have that visual aspect they lean towards which is why these enviroments are great

  5. Fatima Mohammed
    June 30, 2017 at 10:00

    thank you so much
    please could you help me:
    if am using Oracle instead of MySQL, should I choose
    Oracle.web
    or
    Oracle.DataAccess
    ?
    I have assignment, please if any one knows answer me :"

  6. Abbas Mohammed
    June 30, 2017 at 10:00

    Can connect to ACCESS or SQL MDF databases?

  7. Rabia Tufail
    June 30, 2017 at 10:00

    i want to connect sql database with visual c++ but how can i do please send me connection code for it

  8. rafinetworks
    June 30, 2017 at 10:00

    Hi, how can we connect Sqlite with a Windows Form Application ?
    Thanks for the great tutorials…

  9. pari soni
    June 30, 2017 at 10:00

    also , unsubscribed!

  10. pari soni
    June 30, 2017 at 10:00

    nind aa gayi… it is very slow! I stopped the running video bs 2 minute me hi

  11. Jordi Guillem
    June 30, 2017 at 10:00

    Thank you very much

  12. Sajid Ali
    June 30, 2017 at 10:00

    what a beauty method yar.

  13. dadada
    June 30, 2017 at 10:00

    stop zooming it, it gives me a headache

  14. Vedha Peri
    June 30, 2017 at 10:00

    If I'm using SQL Server Management studio, what would be the reference I have to use? Please let me know.

  15. Sina M
    June 30, 2017 at 10:00

    super slow !!

  16. perfectscor3
    June 30, 2017 at 10:00

    weak explanation of the project.

  17. Chi Wang Yeung
    June 30, 2017 at 10:00

    why no part 2?

  18. D2SProductions
    June 30, 2017 at 10:00

    In Visual Studio Community 2015 there is no option for, "Framework and References," under the Common Properties, so I can't follow along here.

  19. PhazzerCH
    June 30, 2017 at 10:00

    Hi! I made my windows form application with your method. The app is working on my pc (installed full mysql software: client, connector, server). But when I would like to use on another the program starts and when I hit the login button I'm getting "MySql.Data file not found" error.. Any solutions?

  20. Kim Jong-Un
    June 30, 2017 at 10:00

    1:51 Solution Exploder?

  21. Saint Smoke
    June 30, 2017 at 10:00

    Set Video Speed to 1.25

  22. UnWorld
    June 30, 2017 at 10:00

    Is there a way to make this independent from .NET? I would like my software to run free from the .NET framework. This video blends C++ with C# (.NET dependent language). .

  23. Kitt Parker
    June 30, 2017 at 10:00

    VS 2008 has intellisense for visual C++ forms.  Huge help.

  24. marhsall 27777
    June 30, 2017 at 10:00

    thanks for making this tutorial,, but can you please make it more alive and a little bit fast? you can finish it with less than 10 minutes, i think

  25. Tomiwa Ojobe
    June 30, 2017 at 10:00

    hello,
    i have  a c++ form that accepts data and saves it on a table in a database via a button click, this is the code for the event
    private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

    String^ constring=L"datasource=localhost;port=3306;username=root;password=lampard";
    MySqlConnection^ conDatabase=gcnew  MySqlConnection(constring);
                 MySqlCommand^ cmdDatabase=gcnew MySqlCommand("insert into test.Data(Full_Name,Matric_No) values('"+this->textBox1->Text+"','"+this->textBox10->Text+"') ;" ,conDatabase);
    MySqlDataReader^ myReader;
    try{
                    conDatabase->Open();
                    myReader=cmdDatabase->ExecuteReader();

    MessageBox::Show("Saved");
    while(myReader->Read()){
     
    }
    }catch(Exception^ex){
    MessageBox::Show(ex->Message);
    }
    NOW i want to send a query to give out this information in a new form or in a form exactly like the one used to enter the data, this is how far i have come 
    private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
    this->Hide();
                 MyForm ^ Form = gcnew MyForm(this);
    Form->ShowDialog();
    String^ constring=L"datasource=localhost;port=3306;username=root;password=lampard";
    MySqlConnection^ conDatabase=gcnew  MySqlConnection(constring);
                 MySqlCommand^ cmdDatabase=gcnew MySqlCommand("Select * from test.Data where Matric_No='"+textBox1->Text +"';",conDatabase);
    MySqlDataReader^ myReader;
    try{
                    conDatabase->Open();
                    myReader=cmdDatabase->ExecuteReader();
    while(myReader->Read()){

    textBox1->Text ;
    }
    }catch(Exception^ex){
    MessageBox::Show(ex->Message);

    }
    }   

    NOte: MyForm is the title of the form used to enter in the data sent to the database
    please how do i get the program to display the data meeting the query criteria into a form?

  26. HasH 2CrasH
    June 30, 2017 at 10:00

    good job, thanks for sharing knowledge. liked and subscribed.

  27. Renan Angelo dos Santos
    June 30, 2017 at 10:00

    tip: watch the video on chrome and set the speed to 1.5.

  28. ekl489
    June 30, 2017 at 10:00

    i think he should speak faster

  29. shruv
    June 30, 2017 at 10:00

    Hello,
    I am not able to select Mysql.data at properties->common properties->add framework and references->.net
    I am using visual c++ 2008 edition. I also have Mysql and Mysql/C++  Connector.
    Could you please guide me what to do?

Leave A Comment

You must be logged in to post a comment.