Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String^ constring = L"datasource=********;port=3306;username=root;password=********;database=file;";
- MySqlConnection^ conDataBase = gcnew MySqlConnection(constring);
- MySqlCommand ^cmdDataBase = gcnew MySqlCommand("select * from `account`", conDataBase);
- MySqlDataReader ^myReader;
- try {
- conDataBase->Open();
- myReader = cmdDataBase->ExecuteReader();
- int count = 0;
- while (myReader->Read()) {
- private: System::Windows::Forms::PictureBox^ myReader["picture"];
- }
- delete myReader;
- }
- catch (Exception^ ex)
- {
- MessageBox::Show(ex->Message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement