12-09-2024 01:36 PM
I'm sure this is obvious to someone but...
I need to read and then write a registry value from my CVI program. I found examples of RegReadString and came up with this test case:
-----------------------------------------------------------------------------------------
Solved! Go to Solution.
12-11-2024 03:47 AM - edited 12-11-2024 03:51 AM
-5070 is error ToolErr_MissingKey. It means that your "SOFTWARE\\BAE Systems\\MyApp" doesn't exist in the registry.
Most likely reason: You are running a CVI 32-bit application on a Windows 64-bit system. Windows will redirect all registry requests from a 32-bit app to "HKLM\\SOFTWARE\\xxxxx" to "HKLM\\SOFTWARE\\WOW6432Node\\xxxxxx" instead.
Your "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders" exists in both places (not necessarily with the same contents though), so you thought it was reading "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders" but it was really reading "SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders"
12-11-2024 08:28 AM
Awesome - thanks! It is a 32-bit app on a 64-bit machine. I had finished implementing a solution with .INI files but I may go back and tweak it.
The offer for the coffee is good. I can share my email here and we can discuss a way I can send a credit of some sort.
This is why I love these forums - someone here always knows the answer to every question.
Howard
12-11-2024 09:05 AM
@HowardE wrote:
Awesome - thanks! It is a 32-bit app on a 64-bit machine. I had finished implementing a solution with .INI files but I may go back and tweak it.
The offer for the coffee is good. I can share my email here and we can discuss a way I can send a credit of some sort.
This is why I love these forums - someone here always knows the answer to every question.
You are welcome. 😁
If you are really inclined to part with a little bit of money of some sorts, please consider doing a donation to some good cause of your choice. 🤗
12-11-2024 09:50 AM
A donation to the NH state science fair will be in your name. Thanks!