Re: [firebird-support] Re: FB 3 embedded on Windows 7 64 bit

2017-03-10 Thread hv...@users.sourceforge.net [firebird-support]

 

---In firebird-support@yahoogroups.com,  wrote :

 On 10.03.2017 15:35, hvlad@... mailto:hvlad@... [firebird-support] wrote:

> So setting FIREBIRD environment variable is the correct and only way to 
> define the Firebird/plugin path at runtime?
 
  Correct - yes, only - no (explained already), easy - yes. 
To be exact: it defines Firebird root directory, not plugin path.

Regards,
Vlad




Re: [firebird-support] Re: FB 3 embedded on Windows 7 64 bit

2017-03-10 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
On 2017-03-10 14:56, Martin Schreiber mse00...@gmail.com 
[firebird-support] wrote:
> On 10.03.2017 15:35, hv...@users.sourceforge.net [firebird-support] 
> wrote:
>  >
>  >
>  > ---In firebird-support@yahoogroups.com,  wrote :
>  >
>  >
>  >> Are ther other possibilities to set the Firebird path than setting
>  >> %FIREBIRD%? A parameter to attachDatabase() maybe?
>  >
>  >   SetEnvironmentVariable.
>  >
>  >
>  >
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms686206(v=vs.85).aspx
>  >
>  >   Use it before attempt to establish very first connection, or 
> before
>  > attempt to load fbclient.dll (if it is possible in your app).
>  >
> So setting FIREBIRD environment variable is the correct and only way to
> define the Firebird/plugin path at runtime?

The other option is to put fbclient.dll and the plugin and intl folders 
in the same folder as your executable.

Mark


Re: [firebird-support] Re: FB 3 embedded on Windows 7 64 bit

2017-03-10 Thread Martin Schreiber mse00...@gmail.com [firebird-support]
On 10.03.2017 15:35, hv...@users.sourceforge.net [firebird-support] wrote:
 >
 >
 > ---In firebird-support@yahoogroups.com,  wrote :
 >
 >
 >> Are ther other possibilities to set the Firebird path than setting
 >> %FIREBIRD%? A parameter to attachDatabase() maybe?
 >
 >   SetEnvironmentVariable.
 >
 >
 > 
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686206(v=vs.85).aspx
 >
 >   Use it before attempt to establish very first connection, or before
 > attempt to load fbclient.dll (if it is possible in your app).
 >
So setting FIREBIRD environment variable is the correct and only way to 
define the Firebird/plugin path at runtime?

Martin


[firebird-support] Re: FB 3 embedded on Windows 7 64 bit

2017-03-10 Thread hv...@users.sourceforge.net [firebird-support]
---In firebird-support@yahoogroups.com,  wrote :
 
> Are ther other possibilities to set the Firebird path than setting 
 > %FIREBIRD%? A parameter to attachDatabase() maybe?
 
  SetEnvironmentVariable. 

  
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686206(v=vs.85).aspx 
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686206(v=vs.85).aspx

  Use it before attempt to establish very first connection, or before 
attempt to load fbclient.dll (if it is possible in your app).


Regards,
Vlad

  



[firebird-support] Re: FB 3 embedded on Windows 7 64 bit

2017-03-10 Thread Martin Schreiber mse00...@gmail.com [firebird-support]


On 10.03.2017 08:41, Martin Schreiber wrote:
> Hi,
> I want to use FB 3 in embedded mode in an application:
> https://gitlab.com/mseide-msegui/mseuniverse/wikis/msekicadbom/MSEkicadBOM
> (under construction).
> It works well on Linux. On Windows 7 64 bit I installed
> Firebird-3.0.1.32609_0_x64.exe
> When I set %FIREBIRD% to the FB install directory connecting the database by 
> attachDatabase() shows the error
> "
> unavailable database
> ".

Got it working, there was a problem with the file path.
Are ther other possibilities to set the Firebird path than setting 
%FIREBIRD%? A parameter to attachDatabase() maybe?

Martin