Solved

Interop.WMPLib 64bit

Posted on 2011-03-23
4
3,923 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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