Hi Leute,
ich hatte ja schonmal voreiniger Zeit was mit ODBC gepostet.
Jetzt habe ich es mal mit SQLAPI++ gemacht nach dieser Anleitung hier:
so sieht meine Abgeänderte Version aus nach dem ich es Compiliere und dann ausführen möchte kommt folgender Fehler:

Kann mir jemand helfen ich bin echt am verzweifeln....
ich hatte ja schonmal voreiniger Zeit was mit ODBC gepostet.
Jetzt habe ich es mal mit SQLAPI++ gemacht nach dieser Anleitung hier:
PHP:
http://cbsecsnip.in/tutorial/how-to-connect-MySQL-database-with-CPP/how-to-connect-MySQL-database-with-CPP.php
HTML:
#include <iostream>
#include <conio.h>
#include <SQLAPI.h> // main SQLAPI++ header
using namespace std;
int main(int argc, char* argv[])
{
SAConnection con; // create connection object
//SACommand cmd(&con,"Select st_id, st_name, st_phone from personaldetail");
SACommand cmd(&con,"Select id from funk.alarmierung"); // create command object
try
{
// connect to MySQL database
con.Connect(
"192.168.2.27:3306", // database name change as per your database name
"ampel", // user name change per your setting
"FFampel2k14", // password I don't have any password for my database
SA_MySQL_Client);
cout<<"We are connected!\n";
// Select from our test table
cmd.Execute();
// fetch results row by row and print results
int i=0;
while(cmd.FetchNext())
{
i++;
cout<<"Row "<<i<<" ";
cout<<cmd.Field("id").asLong()<<" ";
cout<<endl;
}
// commit changes on success
con.Commit();
cout<<"Rows selected!\n";
// Disconnect is optional
// autodisconnect will ocur in destructor if needed
con.Disconnect();
cout<<"We are disconnected!\n";
getch();
}
catch(SAException &x)
{
// SAConnection::Rollback()
// can also throw an exception
// (if a network error for example),
// we will be ready
try
{
// on error rollback changes
con.Rollback();
}
catch(SAException &)
{
}
// print error message
cout<<(const char*)x.ErrText();
}
return 0;
}
so sieht meine Abgeänderte Version aus nach dem ich es Compiliere und dann ausführen möchte kommt folgender Fehler:

Kann mir jemand helfen ich bin echt am verzweifeln....