I've written an app in Delphi 2.01 that is generally to be installed
using Installshield Express onto a machine that does not already have
the BDE.
The app has a new database wizard to create the new database for the
user and then registers an alias for the database. Next it uses that
new alias to open the database.
When you generate a report, it calls another EXE and passes the alias
name to it as a parameter (exe file got too large <grin>)
IF the software was just installed AND you immediately create an alias
then try to generate a report without first closing and reopening the
program THEN I get "unable to initialize BDE" when I try to run the
second exe and it goes to open the passed alias.
If you've already run the program at least once then close it, open it
and create a new database (and alias) and run the report immediately -
no problem. Only seems to happen the first time you run the software
after the BDE install.
Why?
I have called SaveConfigFile right after creating the new alias, so I
don't think it's that the alias is not getting written...