EVC++ and WMP 10 mobile ??

  • Thread starter Thread starter Alex Feinman [MVP]
  • Start date Start date
A

Alex Feinman [MVP]

You can host your WMP OCX control using eVC produced application. You won't
be able to use a wizard and you need to remember that not all of the methods
and properties are supported on the mobile player, but it shares API with
the desktop player. If you use MFC, a good starting point may be creating a
desktop MFC application and adding desktop WMP OCX so that the Visual Studio
(6) generates a wrapper. It will be easier than writing a full wrapper from
scratch. In ATL project you could derive a class from CAxWindow and host a
control in it handling only event interfaces that you care about
 
Dear All:
I'm trying to control WMP10 by Evc. I know that I can control some
early version of WMP via PIE. But it seems that I couldn't do this on
WMP 10 by the same way. Does anyone know how to do this ?
I have consult the MSDN by the WMP 10 SDK. There's no examples on PPC.
But it said that
http://msdn.microsoft.com/library/d...ewindowsmediaplayercontrolinwindowsapplic.asp

"Hosting the Windows Media Player 10 Mobile control in Windows CE
Microsoft eMbedded Visual C++ 4.0 and the Pocket PC 2003 SDK
or the Smartphone 2003 SDK must be installed
when developing Windows CE-based applications
that host a Windows Media Player 10 Mobile control.
Also, unlike ATL for Windows, ATL for Windows CE does not support
the apartment threading model.
Therefore, you must find all instances of apartment threading
in your ATL project and change them to use free threading."

Does it mean I could do it on PPC just as on PC?
But I can't use the example code on EVC!
How can I do ?

I'm very appreciating your response.
Thank u for help

Best Regard!

Kevin Lin
 
Sorry to post in the incorrect newsgroup. That's because I can't do it in
..NET CF. Thus, I think someone might encounter the same problem with me and
solve it via Evc.

Dear Alex:
I've insert the component to Evc by the same place as the VC does. I could
drag the WMP component to the PPC design dailog and add some controls to it.
However, if I deploy the program to the PPC device, I can't see any WMP
component in the windows. Why? Did I do anything wrong? Is it what you mean
"You won't be able to use a wizard" ?

Thx for your help

Sincerely

Kevin Lin
 
Back
Top