LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X help required

 

 

Hi all,

 

Attached is the example of media player that i found while searching on this forum. The problem with this example is that it uses the earlier version of Active X control of " Windows Media Player".

 

 Can anyone edit this example by using the latest version of the Active X control of "Windows Media Player" ?

 

Any help will be greatly appreciated.

0 Kudos
Message 1 of 3
(3,238 Views)

 

 

Hi,

 

I want to add one thing more that when i try to make the above example with the same functions in CVI 2009 and by using the latest
version of the " Windows media Player's Active X control" , then the function

 

 MediaPlayer_IMediaPlayer2SetFileName (mediaHandle, NULL, "1234.mp3");

 

gives the following error

 

NON-FATAL RUN-TIME ERROR:   "d:\usb\msdxm.c line 5555, col 5, thread id 0x00000280:   Function CA_GetInterfaceFromObjHandle: (return value == -2147467262 [0x80004002]). No such interface supported


Can anyone make the above example in CVI 2009 and by using the latest version of the " Windows media Player's Active X control"

0 Kudos
Message 2 of 3
(3,229 Views)

Hi mhs100,

 

Some of the Media Players functions have been deprecated. Try running this example:

 

Using Windows Media Player 9 in LabWindows/CVI

 

That example works on my computer and I have Media Player version 12. One change is that now the play movie functions is MPLib_IWMPPlayer2SetURL.

 

I hope this helps!

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 3 of 3
(3,207 Views)