Solved

Deploying Delphi 1.0 database applications

Posted on 1997-06-21
3
171 Views
Last Modified: 2010-04-04
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!
0
Comment
Question by:opadilla
  • 2
3 Comments
 

Accepted Solution

by:
Robert Gilland earned 50 total points
ID: 1337431
Use the TDataBases Component. In all my deployed
applications the alias is dynamically Deployed using TDatabases.
Make sure that The BDE is distributed with your application.
These redistribution disks come with delphi 1. Or they
are on my website.
www.ecn.net.au/~rgilland/burns.html
0
 

Author Comment

by:opadilla
ID: 1337432
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?
0
 

Expert Comment

by:Robert Gilland
ID: 1337433
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.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now