Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Interop.WMPLib 64bit

Posted on 2011-03-23
4
Medium Priority
?
4,248 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

636 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