Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem mit mysql connector c++ in verbindung mit grafischer Oberfläche

Empfohlene Antworten

Veröffentlicht

Hallo liebe Community

Ich habe folgendes Problem ich muss für ein Schulprojekt, eine mysql Datenbank mit einer grafischen Oberfläche erstellen.Die grafische Oberfläche wollte ich mit c++ erstellen. Ich habe mich etwas schlau gemacht und benutze den

mysql connector c++ und habe den auch schon in Visual c++ integriert der zugriff auf die Datenbank läuft super, leider habe ich noch ein Problem

Gibt es eine Möglichkeit oder besser ein Befehl wie man einen Datensatz aus der mysql Datenbank in eine z.B int oder String variable schreiben kann,da dass noch sehr wichtig für mein Projekt wär, da ja die mysql Datentypen die es gibt wie z.b ResultSet nicht direkt ausgegeben werden können.

Ich wäre für jede Hilfe dankbar :)

Gruß Redhawk

Im Jahre 2005 hat das noch so funktioniert:


mysql_real_connect(connection_out, host, user, pass, dbas, 0, NULL, 0);

mysql_query(connection_out, "SELECT * FROM personen");


res_set = mysql_store_result(connection_out);

numrows = mysql_num_rows(res_set);


if(numrows == 0)	

{

	cout << "\n\t\tKeine Datens" << char(132) << "tze vorhanden";

	getch();

}

else

{	

	while ((data_row = mysql_fetch_row(res_set)) != NULL) 

	{ 

		for (i = 0; i < mysql_num_fields(res_set); i++)	  

		{

			printf(" %s  ", data_row[i]);

		} 			

		cout << "\n\n";

	}

}


mysql_close(connection_out);			

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.