Solved

Deploying Delphi 1.0 database applications

Posted on 1997-06-21
3
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month5 days, 11 hours left to enroll

627 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