Link to home
Start Free TrialLog in
Avatar of opadilla
opadilla

asked on

Deploying Delphi 1.0 database applications

I don't know how to dynamically set an alias when I install
my application on another machine.  I need to do this so
that my Reportsmith report can find the table.  It can find it if I manually go into BDEconfig and set the alias.  I don't want a user to have to worry about that when they install though.

I would imagine that there are BDE API functions that can do this, but the online documentation on Delphi 1.0 says that
I have to order that separately from Borland.
Help!
ASKER CERTIFIED SOLUTION
Avatar of Robert Gilland
Robert Gilland

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of opadilla
opadilla

ASKER

I was using your proposed method and it works fine when my app is only a database app but the database was still invisible to
RS_Runtime.

RS_Runtime would try to look for the required tables at the root
directory of the disk drive.  I ended up copying the table there to get the thing to work, but this is sloppy.  As far as I know,
in Delphi 1.0 the TDatabases component will allow adding an alias
local to your application, but it will not register the alias for you with the BDE (Delphi 2.0 DOES let you do this).

In Delphi 1.0, I think you have to somehow access the BDE directly by means of the BDE API.  Accessing the BDE directly is well documented in Delphi 2.0, but not Delphi 1.0.  Any ideas?
I do not use Report Smith
I wasted too much time on getting it to work
with aliases. I wrote my own report generator
instead.