On Wed, 16 Jul 2014 10:35:12 +0530, "Venus Software Operations
[email protected] [firebird-support]"
<[email protected]>
wrote:
> On 15-07-2014 16:48, Mark Rotteveel [email protected] [1]
> [firebird-support] wrote:
>       
> 
> On 15 Jul 2014 03:47:07 -0700, "[email protected]
[firebird-support]"
> [2]
>   [3] wrote:
>  > Hi all
>  > 
>  > My application in 32 bit which stopped getting to the registry of
>  FireBird
>  > HKLMSoftwareFireBird ProjectFireBird ServerInstances >
>  DefaultInstance
>  > which the WinAPI RegOpenKey() fails and returns a value of 2 "Path
Not
>  > Found"
>  > 
>  > Please advise on what I need to keep in mind with the following
specs:
>  > Win7 64 Bits
>  > FireBird 64 Bits
>  > VFP App 32 Bits
>  > FireBird ODBC 64 Bits
> 
>  By default 32 bit applications are not allowed to read the 64 bit
>  registry. They only see the area of the registry for 32 bit programs
(The
>  Wow6432Node). As the Firebird 64 bit element is written in the 64 bit
>  registry, it is not visible. You can access 64 bit nodes if explicitly
>  requested, but I am not 100% sure if and how that works. See also
> 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724072%28v=vs.85%29.aspx
> [4]
>  and
> 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384129%28v=vs.85%29.aspx
> [5]
> 
>  Why does your application need to know the location of the Firebird
>  server? Also if you want to use ODBC from a 32 bit application, then
you
>  need to use the 32 bit ODBC driver!
> 
>  BTW: The correct registry key for Firebird is with a lowercase b (at
least
>  for 2.5).
> 
>  Mark
> 
> -------------------------
>  Posted by: Mark Rotteveel  [6] 
> -------------------------
> 
>    [7]
> 
>  Thanks for your response Mark.
> 
>  I need to get to the path for FBClient.DLL and also update
Aliases.conf,
> thus was trying to find out where FB is installed.

Note that for a 32 bit application, you need to 32 bit fbclient.dll. It
might be better to expect it on the path. But otherwise: follow the MSDN
links: it describes how to locate 64 bit registry keys as a 32 bit
application. Note that editing aliases.conf also requires privilege
elevation if UAC is enabled.

I can't be more detailed as I don't usually work with the registry (nor
work with fbclient.dll).
 
>  Yes it was a typo here, I use Firebird with a lower b in code

Mark

Reply via email to