Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread setup elevateDB on WinCE
Thu, Jan 7 2010 11:29 PMPermanent Link

"Fabio Codebue @ GestionaleOpen"
I try to set it up on WinCE device but there are lots of problem. The
first one is I can't access to database. I use these lines of code to
read from ini file and set properties of engine, session and database:

  engine.Active:= false;

engine.ConfigPath:=ExtractFilePath(Application.ExeName)+GM_EDB_PATH+'\';

engine.TempTablesPath:=ExtractFilePath(Application.ExeName)+GM_EDB_TEMP+'\';
  engine.Active:= True;

  { Now connect the session }
  sessione.Connected:= false;

sessione.LocalConfigPath:=ExtractFilePath(Application.ExeName)+GM_EDB_PATH+'\';

sessione.LocalTempTablesPath:=ExtractFilePath(Application.ExeName)+GM_EDB_TEMP+'\';
  sessione.LoginUser:= 'Administrator';
  sessione.LoginPassword:= 'EDBDefault';
  sessione.SessionName:= GM_EDB_SESSION;
  sessione.SessionType:= stLocal;
  sessione.Connected:=True;

  { Check to see if the database exists or whether it needs to be
    created }
  // crea_database;
  arcmaga.Connected:= false;
  arcmaga.Database:= GM_EDB_DBNAME;
  arcmaga.DatabaseName:= GM_EDB_DBNAME;
  arcmaga.SessionName:= GM_EDB_SESSION;
  arcmaga.Connected:= true;

where   
 GM_EDB_PATH= 'eDB';
 GM_EDB_DBNAME= 'gomagaDB';
 GM_EDB_TEMP= 'Temp';
 GM_EDB_SESSION= 'maga';



when I try to open the database I receive an error:

elevatedb error 401 the path specified for the database does not exist
Fri, Jan 8 2010 5:17 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fabio,

<< I try to set it up on WinCE device but there are lots of problem. The
first one is I can't access to database. I use these lines of code to read
from ini file and set properties of engine, session and database: >>

How did you create the database using CREATE DATABASE on the WinCE device
emulator ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Jan 11 2010 11:23 AMPermanent Link

"Fabio Codebue @ GestionaleOpen"
On Fri, 8 Jan 2010 17:17:20 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Fabio,
>
><< I try to set it up on WinCE device but there are lots of problem. The
>first one is I can't access to database. I use these lines of code to read
>from ini file and set properties of engine, session and database: >>
>
>How did you create the database using CREATE DATABASE on the WinCE device
>emulator ?

I'm a bit silly... I create database simply copy data from my PC to
winCE device. After this i discover that it's better to create it
manually via code... and it's work...
Mon, Jan 11 2010 11:48 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fabio,

<< I'm a bit silly... I create database simply copy data from my PC to winCE
device. After this i discover that it's better to create it manually via
code... and it's work... >>

Great, so it's all working fine now ?

BTW, I will be putting up some FAQs on getting the WinCE compiler settings
correct, so as to avoid the type of problems that you experienced in the
future.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image