> Am 26.01.2021 um 14:32 schrieb Lee Badham <[email protected]>:
>
> Hi,
>
> It should just contain a number.
Stored as text or as number? Registry can do both!
> dim key as string = "HKEY_LOCAL_MACHINE\SOFTWARE\"+app.appname
>
> dim value as string = ReplaceAllB(r.getStringValue(key,"Server Database
> Port",false),chr(0),"")
getStringValue reads a text field there in registry.
If you pass true for the Use64bitRegistry parameter, a 32-bit app will look in
the 64-bit part of registry.
> It's saved in the 32 bit registry (WOW6432Node) and is confirmed there in the
> registry editor
So you save it to 32-bit section with 32-bit app?
> If I compile to 64bit on windows r.GetString FALSE (so 32 bit node) the
> function returns no data
64-bit app can only read 64-bit part of registry.
> If I compile to 32bit exactly the same node is found.
Good.
> If I use
> dim key as string = "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\"+app.appname
>
> It works, but isn't the false meant to do that for you?
The flag is ignored for 64-bit app, I think.
Sincerely
Christian
--
Read our blog about news on our plugins:
http://www.mbsplugins.de/
_______________________________________________
[email protected] mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info