LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup and Windows 7 library folders

Hello everyone,

 

I have a problem using the FileSelectPopup on Windows 7. When I open a FileSelectPopup and click on "Libraries" (I use a german OS where this feature is called "Bibliotheken", so I hope you get to the point) to select a file in Documents for example, then the return value is 2 (a new file was selected, not an existing one) and the file path starts with strange characters.

 

The call to FileSelectPopup that I use is the following:

 

ret = FileSelectPopup ("", "*.txt", "*.txt", "Select file to import labels", VAL_SELECT_BUTTON, 0, 0, 1, 0, sFileName);

Is this a known problem or limitation of the FileSelectPopup?

I am using LabWindows/CVI 2010 SP1.

I have attached a screenshot of the IDE at a break point just after the call to FileSelectPopup.

 

Thank you for your comments.

 

 

Best regards

 

Hagen

0 Kudos
Message 1 of 4
(3,414 Views)

Yes, this is a known issue that is being addressed in the next version of CVI.

 

Sorry about the inconvenience.

 

Luis

NI

0 Kudos
Message 2 of 4
(3,405 Views)

I am seeing the same issue in LabWindows 2012.  FileSelectPopupEx works okay, but FileSelectPopup doesn't.

0 Kudos
Message 3 of 4
(3,276 Views)

Yes, that is the expected behavior, unfortunately. FileSelectPopup will always have this problem. The solution to this problem was to introduce the FileSelectPopupEx function.

 

:ios

0 Kudos
Message 4 of 4
(3,261 Views)