LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup() and FileSelectPopupEx()

Hi,

 

I am having problems with either FileSelectPopup() and FileSelectPopupEx().

 

The problem with FileSelectPopup() is that it sometimes didn't allow me to go to the subdirectory. Sometimes it showed a non-Windows type of dialog box.

 

So I tried to use FileSelectPopupEx() and it got worse. Once you started calling the function, the program freezed randomly. And sometimes it took long time to show the dialog box, which didn't allow me to go to the subdirectory as well.

 

I'm using a Windows 10 Pro and LabWindows/CVI 2017.

 

Regards,

Yimin

0 Kudos
Message 1 of 2
(1,153 Views)

Try calling

 

CA_InitActiveXThreadStyleForCurrentThread(0, COINIT_APARTMENTTHREADED);

 

as the first thing in your main function.

0 Kudos
Message 2 of 2
(1,128 Views)