Home » U++ Library support » U++ SQL » sqlapp example
Re: sqlapp example [message #16113 is a reply to message #16112] |
Wed, 28 May 2008 13:35   |
toneranger33
Messages: 7 Registered: March 2008
|
Promising Member |
|
|
Hi unodgs. I am running version 712 dev 1 on windows XP.
Kind regards toneranger33
btw: i have tried coding a simple app just to open the databse as starters.
Here is the code:
#include <CtrlLib/CtrlLib.h>
#include <DropGrid/DropGrid.h>
#include <GridCtrl/GridCtrl.h>
#include <plugin/sqlite3/lib/sqlite3.h>
#include <plugin/sqlite3/Sqlite3.h>
using namespace Upp;
GUI_APP_MAIN
{
bool nodb = false;
Sqlite3Session db;
db.LogErrors(true);
#ifdef flagDEBUG
db.SetTrace();
nodb = true;
#endif
FileIn fi("reclib.db");
if(fi.IsError() || fi.GetSize() <= 0)
nodb = true;
fi.Close();
if(!db.Open(ConfigFile("reclib.db")))
{
Exclamation(t_("Can't create or open database file"));
return;
}}
This crashes on execute. No erors reported.
[Updated on: Wed, 28 May 2008 13:37] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Aug 25 23:14:16 CEST 2025
Total time taken to generate the page: 0.04592 seconds
|