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




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

Original source


28 responses to “Visual C++ Tutorial 3 -Windows Forms Application: Mysql Connection Part 2”

  1. Sir, i get the following message when i press the local window debugger button: "the system cannot find the file specified". What does it mean? How to fix the problem?

  2. hi man , when i try to run it it gives me this error , pleas help : Severity Code Description Project File Line Suppression State
    Error C3867 'MySql::Data::MySqlClient::MySqlDataReader::Read': non-standard syntax; use '&' to create a pointer to member

  3. Hi, I just whant to tank you for the lessons and to tell you that I have found one error on "my" code, since the line:
    String^ constring=L"datasource=localhost;port=3306;username=root;password=root";
    creates an error when you click te button, so I found that if you change for this:
    String^ constring=L"Addr=localhost;port=3306;username=root;password=root";
    there is no problem, I´m using MySQL57, and found the information in this page:
    https://msdn.microsoft.com/es-es/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1
    Blessings for you my friend.

  4. String^ constring=L"datasource=localhost;port=3306;username=root;password=root";
                    MySqlConnection^ conDataBase=gcnew MySqlConnection(constring);
                    MySqlCommand^ cmdDataBase=gcnew MySqlCommand("SELECT * FROM `database`.`employees`;",conDataBase);//queries
                    MySqlDataReader^ myReader;

                    try{
                        conDataBase->Open();
                        myReader=cmdDataBase->ExecuteReader();
                    }catch(Exception^ ex){
                        MessageBox::Show(ex->Message);
                    }

  5. Thank you for this video. But I have a small questions. What is this language called? Is it C#?. And how can I find the commands that you show? I'm a little confused, because those commands are not easy to understand, I don.t know how to write it. Could you help me, please?

  6. I keep getting the following message when I press the OK button:  "Authentication to host 'localhost' for user 'root' using method 'MySQL_native_password' failed with message: Access denied for user 'root' @ 'localhost" (using password:YES).  What have I done wrong? 

Leave a Reply