Need a simple example of reading from registry.

BlitzPlus Forums/BlitzPlus Beginners Area/Need a simple example of reading from registry.

-=Darkheart=-(Posted 2007) [#1]
The code is in there in the arcs but I'm finding it difficult to use and I think I'm misunderstanding something fundamental.

I'm using Gman's registry code here:

http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=1136

I can't see to return the data from any registry key. I keep getting the error "Variable must be a type".

Can anyone give a simple example of how they would retrieve data from the registry using this code?

Say from:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\Drivers\Direct3D HAL

As an example.

Thanks,

Darkheart


-=Darkheart=-(Posted 2007) [#2]
Nevermind worked it out.

Darkheart