Solved

Installing and creating Aliases for BDE 2.5 16-bit

Posted on 1998-06-08
3
151 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

803 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