07-07-2010 01:13 PM
Okay, thanks. One note to others - I have the NI Developer Suite DVD set. When choosing to install the LabWindows/CVI 2009 Development System, you need to choose "Custom Install" in order for the menu Luis has shown to appear during the installation. The normal "Install" skips this screen.
06-10-2015 01:05 AM
The problem is that the SDK of CVI 2013 is configured to use the XP API which does not know SHGetKnownFolderPath().
Does anyone know how to reconfigure the SDK to use Win7 API? I don't like to change SDK header due the project will be compiled on different machines.
Regards
AutomationGuy
06-10-2015 12:02 PM
By default, CVI sets the SDK version to be the highest version that supports all the operating system versions that CVI itself supports. But you can change this, without having to change the headers themselves, by simply redefining those macros in the Build Options.
For the SDK, in general, you should redefine WINVER, _WIN32_WINNT and _WIN32_WINDOWS. But for that particular API, you should redefine NTDDI_VERSION instead:
09-27-2016 11:36 AM
Looking for a solution to finding the default AppData location and found this old thread. LouisG indicated this might be included for future versions of CVI. I can't find anything in the help document about it.
Is there now something in CVI which does this?
Or, do I have to use SHGetFolderLocation()? If so, does anyone have a sample project doing this?
Thanks,
Dave
09-29-2016 08:32 AM
There isn't anything new in CVI to do this, so you still have to use SHGetFolderPath. As far as sample code is concerned, it should be as simple as doing this:
SHGetFolderPath (0, CSIDL_COMMON_APPDATA, NULL, SHGFP_TYPE_CURRENT, path);
09-29-2016 10:44 AM
I had to add also shell32.lib to the project to resolve symbols (CVI2015SP1 on Win10)
09-29-2016 12:46 PM
Thanks Luis and Roberto. I think that answers everything.
Dave
11-27-2016 10:14 AM
Why is writing default data directory, path in the registry? The language specific information can be added during the first run ...