Solved

Installing and creating Aliases for BDE 2.5 16-bit

Posted on 1998-06-08
3
148 Views
Last Modified: 2010-08-05
Hello,

I need to install a Delphi 1.0 application along with BDE 2.5 16-bit. The installation must run under Win 3.x/95/NT.

I do not have access to Delphi itself and corporate policy dictates that I must use InstallShield (in my particular case version 5 Pro). So basically I have to roll my own (using C/C++) or somehow access the BDE API from InstallShield's InstallScript.

Information from from both Inprise's site and InstallShield's have not addressed this issue. I need to know what the BDE api's are, from which DLL do I get them and any other information I can get about this particular situation (perhaps even examples using C/C++ - I am using Visual C++ 1.5/4.2)

Any information is appreciated.

Thanks.

Jose Negron
The Depository Trust Company
Tel: 212-855-8419
Email: Jose_Negron@dtc.org
0
Comment
Question by:jnegron
  • 2
3 Comments
 
LVL 1

Expert Comment

by:michaue
ID: 1351507
What do you mean by 'So basically I have to roll my own (using C/C++)'.

0
 
LVL 1

Accepted Solution

by:
michaue earned 100 total points
ID: 1351508
I'm not sure if the following is relevant for the version of the BDE you are using ...

Creating and Alias using C

Example 1: Add a STANDARD database alias to the configuration file.

fDbiAddAlias1("TestAlias","PATH:C:\\BDE\\EXAMPLES\\TABLES");

DBIResult fDbiAddAlias1(char *AliasName, char *AliasPath)
{
  DBIResult rslt;
  rslt = Chk(DbiAddAlias(NULL, AliasName, NULL, AliasPath, TRUE));
  return rslt;
}
0
 

Author Comment

by:jnegron
ID: 1351509
'Roll my own' means that I have to write a program that will actually create the alias. I managed to get ahold of some information concerning the BDE API but and it even gives templates for C programs but it makes references to files such as IDAPI.H which I simply cannot find. The information I received comes from (I think) Delphi 3 docs. I have to do this with BDE 2.5 for an application written in Delphi 1. The .exe to create the alias must run under Win 3.x/95/NT.

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

16 Experts available now in Live!

Get 1:1 Help Now