LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with RegReadString function from the programmer'S toolbox

I have set the default value of my subkey like this:

RegWriteString(REGKEY_HKLM, "Software\\VA201XQ2C", "", DefaultWorkDir);

Then I read it with this call:

RegReadString (REGKEY_HKLM, "Software\\VA201XQ2C", "", WorkDir, MAX_PATHNAME_LEN, NULL);

The problem I have, is the function always returns me an empty string, while I can see that the value is really set to want I want with regedit.
0 Kudos
Message 1 of 2
(3,185 Views)
For full documentation and help on these windows SDK functions you should look at the MSDN at microsoft.com.

You may also have some luck looking at the following code I found.

(Note that this code is not supported by NI Applications Engineers and is meant only to illustrate the use of certain sdk funtions.)

-Amaury Rolin
NI Aplications Engineer
0 Kudos
Message 2 of 2
(3,185 Views)