Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
toneranger33 is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newbie help with PostgreSQL example
Next Topic: MySQL easy guide
Goto Forum:
  


Current Time: Mon Aug 25 23:14:16 CEST 2025

Total time taken to generate the page: 0.04592 seconds