LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and write from / to windows registry

How do I write and read values from windows registry ? (F.e. looking for the
path of a capi.dll or App Paths for my own applications ?

Thanks for any help

Norbert Rieper
0 Kudos
Message 1 of 5
(4,326 Views)
If you are using the latest version of CVI (5.5), then there are functions in the Programmer's Toolbox (cvi\toolslib\toolbox\toolbox.fp) for reading and writing to the registry. If you aren't using CVI 5.5, you will have to use Windows SDK functions.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 5
(4,326 Views)
In windows SDK that ships with CVI there is a complete chapter about the registry (Win32/Overviews/System Services/Registry). In it there is an exhaustive discussion about reading a writing to it and an example ('Using the registry' item) the you can use as a starting point for you to study.
In winerror.h you will fine a listing of errors reported by functions: search in it with 'registry'.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 5
(4,326 Views)
Of course if you're only using 5.0, you're gonna want this. Have a nice day.
0 Kudos
Message 4 of 5
(4,327 Views)
very good thanks...the best answer I have seen yet.
I do not want to read 200 pages of a document to get an answer..
 
I downloaed the wintools and tried it in cvi 6 and it worked great.
 
 
thanks again..
- Make Software User Friendly -
0 Kudos
Message 5 of 5
(3,919 Views)