LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify using one fixed file to using a file control just like path control in my Activex project?

Pls see the attachmet! It is my cvi project using Activex. it is a mediaplayer programm. But it just can play a fixed media file in the fixed path.If I want to move the media file to another path, it cannot play.So i want place a path control in the UIR, so it can randomly search the file through path contrl dialog interface. But i don't know how to modify my program to achieve the target. Could you give me a hand? I use CVI6.0. Thanks a lot!!
0 Kudos
Message 1 of 2
(2,526 Views)
Add an Open button. In its callback function, call FileSelectPopup and MediaPlayer_IMediaPlayer2SetFileName.
See the attached project with modified .UIR and .C files.
PS: when you're posting a project, you don't need to include the huge files like .EXE, .CDB, .NIOBJ. It will help us download your files.
Download All
0 Kudos
Message 2 of 2
(2,526 Views)