Results 1 to 4 of 4

Thread: Windows MediaPlayer driving me MAD - please help!!

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    32

    Angry Windows MediaPlayer driving me MAD - please help!!

    Hi all...

    I am writing a simple MP3 player in VB.Net using the Windows Media Player (WMP) COM object. My problem is that it will only seem to allow me to use the v6.4 methods/properties etc and none of the v7.x ones which is what I want to use.

    Here's what I've done:
    1. Downloaded WMP7.1 and installed it. (I also downloaded the WMP SDK to get the documentation and exmples).
    2. Started a new VB.Net windows application.
    3. Added a reference to the WMP to the Toolbox (via "Customise Toolbox") by selecting the Windows Media Player from the list of available COM objects (msdxm.ocx).

    This is where the problem starts - the only available MediaPlayer object is msdxm.ocx which is v6.4 - so how do I specify the OCX or DLL for Version 7.1?! If I look in the \WINNT\System32 folder there are the following files: WMPCORE.DLL (v7.10, 769kb) and WMP.OCX (v7.01, 184kb)... so I assume it's one of these I need. But I can *not* seem to get Visual Studio .Net to include either of these as references. Even if I click 'Browse' on the references dialog and try to add either of the above files it just won't do it!!!
    (It thinks about it for a few seconds but does not add the new objects to the existing list).

    This is driving me bananas!!! I'm stuck with v6.4 functionality which is not what I want and just don't know how to solve this.
    I'm not a VB or .Net expert so I can't understand what I'm doing wrong. The MediaPlayer SDK docs are *useless* - they don't give any programming examples or tell you which COM object should be used for v7.x. I have also searched and searched the 'Net to see if I can work out what's happening with no luck - *please*, if anyone can help me I'd very much appreciate it!!

    Mike.

  2. #2
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    You Cant There Isnt A 7 Version The Interface Only 6 anyhow hopefully the version 9 beta will help you it will soon be released Watch Microsoft Anouncments for it

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    32
    Thanks for that. I eventually discovered myself that you could only use the v6 methods and properties etc - I'll definately be on the lookout for v9 though!

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    32

    Media Player 9 SDK now available!

    I just found out from the MS site that v9 of the SDK is available so hopefully we can now use the latest and greatest player controls in our MP3 apps!

    Download the SDK here:
    http://msdn.microsoft.com/library/de...411&frame=true

    Mike.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width