Subject | Re: [firebird-support] how to detect which client library is currently loaded |
---|---|
Author | Helen Borrie |
Post date | 2006-03-06T09:03:50Z |
At 07:40 PM 6/03/2006, you wrote:
call that says "am I really me?" The API is identical, regardless of
which client library you're actually using. It might even be
libfbclient.so on a Linux client, but the API is still the same.
directory and make sure a file of the right name (and perhaps size)
is there before the LoadLibrary call.
You have to trust the user not to mess around with the
installation. If not, can your user be trusted not to delete the
database file? Or the application executable?
./heLen
>How to detect which client library (fbclient or fbembed) is currentlyLOL! the client library *is* the API. So - no, there isn't an API
>loaded. Any Firebird API to call ?
call that says "am I really me?" The API is identical, regardless of
which client library you're actually using. It might even be
libfbclient.so on a Linux client, but the API is still the same.
>Actually the goal is to make a standalone application (eg. withYou don't. Even your application can only look in the application
>Delphi/FIB/IBO) and want to limit it only to use embedded client
>library. How to know that the loaded library is the correct
>fbembed.dll instead of fbclient.dll (for eg. user has renamed the
>fbclient.dll into fbembed.dll)
directory and make sure a file of the right name (and perhaps size)
is there before the LoadLibrary call.
You have to trust the user not to mess around with the
installation. If not, can your user be trusted not to delete the
database file? Or the application executable?
./heLen