04-28-2006 09:27 PM
I use txt files to save and load settings in CVI. For example, if I want to save current values of UIR controls, I could save these values to a txt file, then next time when I open that, I could load those values from that txt file. Sometimes, it’s not convenient when the contents in text file are quite big. Another way is to use registry, but still not convenient. Recently I know there’s another way to do that: to use ini file, by using two API functions in windows.h: WritePrivateProfileString, GetPrivateProfileString. However I failed to use this two functions in CVI. I appreciate anybody could provide a CVI example.
Thanks!
Jacky
04-29-2006 08:37 PM - edited 04-29-2006 08:37 PM