Subject Re: Embedded FB1.5 Doesn't Like "localhost".
Author barfingdog_2004
barfingdog_2004 wrote:
> Hi Folks:
>
> This application is being developed on Win2K.
>
> I'm building my first Firebird application. It's
> running fine in a client-server relationship and I can
> insert and select data from myfirst table. Now I want
> to make it an embedded app.

> The instructions said that's all I needed to do.

Thanks Folks:

With your help and advice I've found the problem.

Now I need to find the solution.

On my PC, Microsoft's dynamic linker insists on using
D:\Program Files\Firebird\Firebird_1_5\bin/fbclient.dll.
This is the directory where the installer,
Firebird-1.5.0.4306-Win32.exe put it.

It would rather use that DLL than the DLL in the
executable's directory.

This was revealed by MSVC's utility "Depends.exe".

I posted a question about this to the win32 group,
and was told the loading order was described by:
http://msdn.microsoft.com/library/en-us/dllproc/base/loadlibrary.asp

This states the search order for a DLL is:

DLLs already loaded.

The directory from which the application loaded.

The current directory.

The system directory

The directories that are listed in the PATH
environment variable.

So, if the DLL's in the exe directory are being
ignored, is there something in the IBPP or Firebird
code that is loading fbclient from the Firebird
install directory?

Thanks
Larry