Solved

Interop.WMPLib 64bit

Posted on 2011-03-23
4
3,837 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Spot on, thanks very much
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now