Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Installing and creating Aliases for BDE 2.5 16-bit

Posted on 1998-06-08
3
Medium Priority
?
161 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 300 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

877 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