Using Media Player in console app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dh

    #1

    Using Media Player in console app

    Hi all,

    ....trying to instantiate a WMP player in a console, but the code failed in:

    using AxWMPLib;
    using WMPLib;
    ....

    AxWMPLib.AxWind owsMediaPlayer objPlayer = new AxWMPLib.AxWind owsMediaPlayer( );

    A first chance exception of type 'System.Threadi ng.ThreadStateE xception'
    occurred in System.Windows. Forms.dll.

    Does anyone have a way around this?

    Thanks,
    DH
Working...