Mello
2013-07-17 16:48:49 UTC
Hi all!
I new here, I'm trying to connect with firebird with this code:
#include <stdio.h>#include <tchar.h>#include "soci.h"#include
"soci-firebird.h"#include <iostream>
using namespace soci;
soci::backend_factory const &backEnd = *factory_firebird();;
int _tmain(int argc, _TCHAR* argv[])
{
session sql(backEnd, "service=DATABASE.FDB user=SYSDBA password=masterkey");
int count;
sql << "select count(*) from MYTABLE", into(count);
return 0;
}
but I recive this error on debug mode:
Unhandled exception at at 0x76AA4B32 in ConsoleApplication1.exe: Microsoft
C++ exception: soci::firebird_soci_error at memory location 0x00FCF24C.
And just running, works well... how can I solve?
Thanks for attention, Mello.
I new here, I'm trying to connect with firebird with this code:
#include <stdio.h>#include <tchar.h>#include "soci.h"#include
"soci-firebird.h"#include <iostream>
using namespace soci;
soci::backend_factory const &backEnd = *factory_firebird();;
int _tmain(int argc, _TCHAR* argv[])
{
session sql(backEnd, "service=DATABASE.FDB user=SYSDBA password=masterkey");
int count;
sql << "select count(*) from MYTABLE", into(count);
return 0;
}
but I recive this error on debug mode:
Unhandled exception at at 0x76AA4B32 in ConsoleApplication1.exe: Microsoft
C++ exception: soci::firebird_soci_error at memory location 0x00FCF24C.
And just running, works well... how can I solve?
Thanks for attention, Mello.