Solved

Interop.WMPLib 64bit

Posted on 2011-03-23
4
4,083 Views
Last Modified: 2012-05-11
Hi,

I'd like to use an embedded WMP control on a vb.net forms application in 64 bit, however it appears that the Interop.WMPLib is not 64bit compatable. Is there an alternative?

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
0
Comment
Question by:Dave_Angel_Portsmouth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
Todd Gerbert earned 500 total points
ID: 35198133
I'm particularly familiar with the WMPLib you've cited - did you download the Interop.WMPLib somewhere, or import it from a DLL on your system? If the latter is the case, you may just need to import the DLL from C:\Program Files\Windows Media Player (which is the 64-bit version, as opposed the 32-bit edition in C:\Program Files (x86)\Windows Media Player).
0
 
LVL 2

Author Comment

by:Dave_Angel_Portsmouth
ID: 35205184
tgerbert,

Many thanks for the reply, do you know where it can be found, i've got a 64bit win7 machine, and its not in the C:\Program Files\Windows Media Player directory?
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35213858
C:\Windows\system32\wmp.dll works for me on my 64-bit Windows 7 system.

http://msdn.microsoft.com/en-us/library/dd564585(v=vs.85).aspx
0
 
LVL 2

Author Closing Comment

by:Dave_Angel_Portsmouth
ID: 35229890
Spot on, thanks very much
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question