Solved

Interop.WMPLib 64bit

Posted on 2011-03-23
4
4,003 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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