Question

Hello gang,

I have had to change an app from VLC to WMP (VLC changed it's interfaces and there are still bugs in 2.0... though a great stand alone player)

However, I thought I could use Windows Media Player in an app that is 32 or 64 (anyCPU) but it errors out and so far the only research I can find show that WMP can only be on a 32 bit app. Am I wrong? Can I use WMP in a 32 and 64 bit apps?

Thanks.

Link to comment
https://www.neowin.net/forum/topic/1062882-net-wmp-in-64-bit-app/
Share on other sites

13 answers to this question

Recommended Posts

  • 0
  On 08/03/2012 at 14:25, articuno1au said:

You cannot.

WMP is 32 bit only, thus you cannot import it's libraries in a 64bit app.

You'll have to make use of the .net libraries instead. There are video handling libraries in .net and WPF :)

Thanks. I am upgrading the current app, but I am using WPF for the next version. Please be so kind to let me know what libraries use audio and video in WPF I'd appreciate it.

  • 0
  On 08/03/2012 at 14:40, articuno1au said:

If you can get away with it, I would just use the video control in the library. It should do most of what you want it to do.

If it doesn't you are looking at using DirectX.

I am not finding the "video" control, either in WPF, COM or .NET Would you be so kind to elaborate?

  • 0

Let me try the question this way; I want to build the app with the option of Target CPU set to "AnyCPU" so the app can be run as 32 or 64bit. I have spent part of the day attempting to playing with DirectX, but I am not getting a clear answer if what I want is possible.

Thanks.

  • 0
  On 08/03/2012 at 14:25, articuno1au said:

You cannot.

WMP is 32 bit only, thus you cannot import it's libraries in a 64bit app.

You'll have to make use of the .net libraries instead. There are video handling libraries in .net and WPF :)

WMP is not 32bit only lol. Windows x64 ships with a 64bit version of WMP, just that by default it uses the 32bit player (codec compatibility).

  • 0
  On 08/03/2012 at 21:06, James Rose said:

Let me try the question this way; I want to build the app with the option of Target CPU set to "AnyCPU" so the app can be run as 32 or 64bit. I have spent part of the day attempting to playing with DirectX, but I am not getting a clear answer if what I want is possible.

Thanks.

MediaElement & MediaPlayer controls are the only two default WPF control's that can play video, though I'm unsure on the codec support - see here

I believe it uses the WIndows Media Player video engine underneath, so it should support all the codecs WMP does on your system.

  • 0
  On 08/03/2012 at 21:10, Razorfolds said:

WMP is not 32bit only lol. Windows x64 ships with a 64bit version of WMP, just that by default it uses the 32bit player (codec compatibility).

Unfortunately the WMP.DLL is COM and only 32 bit. Feel free to prove me wrong about this. Please, PLEASE prove me wrong. I have spent hours trying to get it to work and doing research. I'd be happy to be wrong.

Thanks Johnny, I will look into your link.

  • 0

Native dlls are either 32-bit or 64-bit. If you use "Any CPU", you must use 32-bit dlls when running in 32-bit, and 64-bit dlls when running in 64-bit (you can know by checking Environment.Is64BitProcess). If WMP.dll is 32-bit then that means you cannot use "Any CPU", you must use "x86" or "Win32" or however it's called.

See http://blogs.microso...cpu-builds.aspx

Why do you need 64-bit anyway?

  • 0
  On 08/03/2012 at 21:50, Dr_Asik said:

Native dlls are either 32-bit or 64-bit. If you use "Any CPU", you must use 32-bit dlls when running in 32-bit, and 64-bit dlls when running in 64-bit (you can know by checking Environment.Is64BitProcess). If WMP.dll is 32-bit then that means you cannot use "Any CPU", you must use "x86" or "Win32" or however it's called.

Why do you need 64-bit anyway?

re: DLLs. Thanks, that is what I thought. (but was not sure at all)

As for 64-bit (good question) There is no real reason, just the option can be nice depending on the user's machine.

This topic is now closed to further replies.
  • Posts

    • GT games are boring compared to Forza (Horizon or Motorsport)
    • Dead By Daylight and three more games join Xbox Free Play Days this weekend by Pulasthi Ariyasinghe As the weekend approaches, Microsoft has brought along another Free Play Days promotion for Game Pass subscribers to jump into. This time, Dead by Daylight, Headbangers: Rhythm Royale, Trailmakers, and Synduality Echo of Ada are all available for Xbox Game Pass Ultimate, Standard, and Core members for no extra cost. As always, any progress made during the weekend also carries over automatically if you decide to purchase a game afterward. From the four games available, Dead by Daylight should be the most familiar to most gamers. The multiplayer four-versus-one asymmetric survival horror game has you assuming the roles of survivors or the killer to see who can come out on top. Next, Headbangers: Rhythm Royale lands as a light-hearted, rhythm-based battle royale game. Up to 30 players can be in a single round, all represented as pigeons, before various mini-games involving increasingly difficult rhythm challenges get thrown at the group. The last remaining pigeon becomes the "Master Headbanger." Meanwhile, Trailmakers is a popular sandbox experience where you and your friends construct physics-based vehicles. A wide range of modular parts are offered for making these vehicles, with an exploration element also adding more options to search for. Adventure, sandbox, and racing modes arrive as options for playing either solo or in multiplayer. Lastly, the Synduality Echo of Ada is a sci-fi extraction shooter experience where you control mechs as you search for loot while fighting AI and other players. Here are the store links for the announced titles and their supported platforms: Dead by Daylight - $11.99 (Xbox Series X|S, Xbox One) Headbangers: Rhythm Royale - $3.99 (Xbox Series X|S, Xbox One, PC) Trailmakers - $14.99 (Xbox Series X|S, Xbox One, PC) SYNDUALITY Echo of Ada - $29.99 (Xbox Series X|S) This Free Play Days promotion will end on Sunday, June 22, at 11:59 pm PT. Following this, expect another round of games to enter the program next Thursday, June 26.
    • I'm not simping, I'm telling it how it is. This is the norm and has been forever. Profits need to keep growing, it doesn't matter if you are valued at a trillion or a million. As long as you are part of public trading that's the name of the game. If it's cheaper for the company to outsource, they will, and you'll get laid off. Welcome to capitalism 101. Like I said, the problem is the system itself.
    • Samsung may offer Galaxy AI free for life on the Galaxy Z Fold7, Z Flip7, and Z Flip7 FE by Sagar Naresh Bhavsar Samsung is all set to unveil its latest foldables: the Galaxy Z Fold7, Z Flip7, the affordable Z Flip7 FE, along with the Galaxy Watch8 series at the Unpacked event, possibly in New York City. The Galaxy Z Fold7 is expected to be the thinnest book-style foldable from the company, while the Galaxy Z Flip7 is tipped to come with a full-screen cover display. These devices are almost confirmed to launch with Android 16-based One UI 8 out of the box, the beta of which is already live for the Galaxy S25 series. Samsung is also expected to give a glimpse of its first XR headset, the Galaxy XR, dubbed "Project Moohan," at the event. However, there may be something more exciting coming for upcoming foldable fans. A reliable leaker, PandaFlashPro on X, has tipped that you might get all Galaxy AI features for free for life with the upcoming Galaxy Z Flip7 and Galaxy Z Fold7. Notably, Galaxy AI will also reportedly be permanently free on the affordable Galaxy Z Flip7 FE. The leaker also claimed that the Galaxy Z Fold7, Z Flip7, and Z Flip7 FE will also come with Gemini Advanced plus 2TB of cloud storage, free for six months. This is similar to theoffer that Samsung offered the Galaxy S25 series earlier this year. However, the company cleared the air that the Galaxy AI features on the Galaxy S25 series will be free till the end of 2025, after which a subscription-based model will be introduced. If true, then you will be able to enjoy Galaxy AI features such as Sketch to Image, Generative Image, Note Assist, Live Translate, Interpreter, Chat Assist, etc., free for a lifetime on the upcoming foldables, setting it apart from its competitors.
  • Recent Achievements

    • First Post
      MikeK13 earned a badge
      First Post
    • One Month Later
      OHI Accounting earned a badge
      One Month Later
    • Week One Done
      OHI Accounting earned a badge
      Week One Done
    • First Post
      Thornskade earned a badge
      First Post
    • Week One Done
      Higante88 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      705
    2. 2
      ATLien_0
      267
    3. 3
      Michael Scrip
      202
    4. 4
      +FloatingFatMan
      173
    5. 5
      Steven P.
      130
  • Tell a friend

    Love Neowin? Tell a friend!