Embedding WMPlayer and Flash Player in 64-bit not working (Visual Studio 2010)
-
Wednesday, July 11, 2012 6:32 AM
Some really pernicious errors occur in the embedding of video controls in Visual Studio 2010. I think this is because I am working in 64-bit for the first time. This is true of both the AxWMPLib.AxWindowsMediaPlayer and AxShockwaveFlashObjects.AxShockwaveFlash object as you can see below.
Here is a screen shot of the error:
And here are the errors:
Error 2 Type 'AxShockwaveFlashObjects.AxShockwaveFlash' is not defined. E:\Projects\keen\NewPlayerV0.41\NewPlayer\FormMain.Designer.vb 26
Error 3 Type 'AxWMPLib.AxWindowsMediaPlayer' is not defined. E:\Projects\keen\NewPlayerV0.41\NewPlayer\FormMain.Designer.vb 27
Error 4 Type 'AxShockwaveFlashObjects.AxShockwaveFlash' is not defined. E:\Projects\keen\NewPlayerV0.41\NewPlayer\FormMain.Designer.vb 132
Error 5 Type 'AxWMPLib.AxWindowsMediaPlayer' is not defined. E:\Projects\keen\NewPlayerV0.41\NewPlayer\FormMain.Designer.vb 133To duplicate these errors just follow the steps at http://msdn.microsoft.com/en-us/library/windows/desktop/dd564585%28v=vs.85%29.aspx Then change your platform to x64, save and exit, then reload the solution. The problem does not occur as long as you stay in x86 mode.
All Replies
-
Wednesday, July 11, 2012 8:32 AM
Is it working if you create a new app and drop the same control onto a form? Can you verify this behavior and confirm?
If yes there is bug logged on Microsoft Connect and has a work-around on https://connect.microsoft.com/VisualStudio/feedback/details/520078/windows-media-player-implementation-causes-failed-to-create-component-axhost-error
Otherwise you need to change your project to target “Any CPU”.
Lingaraj Mishra
-
Wednesday, July 11, 2012 11:12 AM
Yes, you can create a brand new WinForms app and it does the exact same thing. I don't have the luxury of using Any CPU because a different part of the application has a dedicated 64-bit dll. The 32-bit dll did not work under WOW.
Thanx,
Anil -
Wednesday, July 11, 2012 11:27 AM
I looked at the link you posted and it is a completely different error. Of course it is slightly related because it deals witht he same control AXWMPlayer...I have posted a workaround for that particular error at the above link.
Anil
-
Thursday, July 12, 2012 6:57 AMModerator
Hi Anil,
Welcome to the MSDN Forum.
I read your post, but I don't found what is your question.
You have find the root cause "because I am working in 64-bit for the first time". And if you want to work with x64 platform, so please reference the 64bit component.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Mike FengMicrosoft Contingent Staff, Moderator Friday, July 13, 2012 1:55 AM
-
Thursday, July 12, 2012 11:55 AM
Mike:
This is my question, not Lingaraj's.
The question is simple - how do I fix the errors shown in my message and the screen capture? I have used PESnoop to test the WMP.DLL files and all the builds contain a 32-bit dll. Anyway, that is just one clue - I don't really know what the problem is but I am getting the error shown.
There is no 64-bit WMP.DLL on my system and I have installed the Windows Media SDK on this system.
Anil
-
Friday, July 13, 2012 2:01 AMModerator
Hi Anil,
It's my mistake. And I have correct the appellation.
>>how do I fix the errors shown in my message and the screen capture?
Just change the platform of your project to X86 since your references are x86.
There is a rule: we should add the x86 references to our x86 application, and x64bit references to our x64 application.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Thursday, July 19, 2012 4:07 AM
-
Friday, July 27, 2012 11:39 AMYou keep stating the obvious, and I apologize, but it is not helping. :-) I know that "we should add the x86 references to our x86 application, and x64bit references to our x64 application". The question remains - how do I get the "correct" references into my x64 build. AFAIK, there are no 64-bit versions of these two dlls.
-
Monday, July 30, 2012 2:40 AMModerator
Hi Anil,
There is 64bit AxWindowsMediaPlayer. But for AxShockwaveFlash , I am not sure, you can turn to Adobe: http://helpx.adobe.com/learning/
For AxWindowsMediaPlayer, please try to change the platform of your solution to x64 and delete the previous reference and add it again.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

