Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. String^ constring = L"datasource=********;port=3306;username=root;password=********;database=file;";
  2. MySqlConnection^ conDataBase = gcnew MySqlConnection(constring);
  3. MySqlCommand ^cmdDataBase = gcnew MySqlCommand("select * from `account`", conDataBase);
  4. MySqlDataReader ^myReader;
  5. try {
  6. conDataBase->Open();
  7. myReader = cmdDataBase->ExecuteReader();
  8. int count = 0;
  9. while (myReader->Read()) {
  10. private: System::Windows::Forms::PictureBox^ myReader["picture"];
  11. }
  12. delete myReader;
  13. }
  14. catch (Exception^ ex)
  15. {
  16. MessageBox::Show(ex->Message);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement