Re: How to control MediaPlayer to play,pause,stop and view the palylist in PocketPC with an embeded win32 program.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have installed the WMP 10 SDK , the WmpML.exe can synchronize the
MediaPlayer program well, and when i try to migrate the WmpML sample to
PocketPC, but failed with the following build errors:

D:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
MainDlg.cpp
D:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
PopDlgs.cpp
D:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
RemoteHost.cpp
d:\visual studio 2005\projects\WmpML\WmpML\RemoteHost.h(13) : fatal error
C1083: Cannot open include file: 'wmp.h': No such file or directory
Generating Code...

^^^^^For Windows CE platforms without DCOM support !

and i want a Win32 program without dialog to control Mediaplayer, what can
i do?

any sample code can run in PocketPC?

Thanks!

"Neil Smith [MVP Digital Media]" <neil@xxxxxxxxxx>
??????:8au8h1lppg69cu16lq50bspkcpu3f559ah@xxxxxxxxxx
> On Tue, 30 Aug 2005 20:59:53 +0800, "Jason Yan" <yanzhw@xxxxxxxxxxx>
> wrote:
>
>>My development entironment is Visual Sutido 2005 Beta2 with Windows Mobile
>>5.0 Pocket PC SDK.
>
> This is the problem with providing no information, you get useless
> answers. The 5.0 PPC SDK hosts Media Player 10 object model.
>
>>and the sample gived by Windows Media Player CE SDK.exe doesn't work
>>well,with build errors.
>
> You need to reference the WMP10 SDK instead of the 6.4 SDK I shows
> you, which is used for earlier WM2002 and WM2003 models hosting media
> player.
>
>>My question is ,how can i write an othre Win32 Smart Device Program to
>>control the MediaPlayer just play,stop,pause and get the Playlist.
>>
>>and the State and Notifications Broker will give me the notification.but
>>how can i control the MediaPlayer active.
>>
>>
>>Any idea will be helpful.
>>
>>"Neil Smith [MVP Digital Media]" <neil@xxxxxxxxxx>
>>??????:lj78h11tcbhpffhju74bqtado9iq9a3r20@xxxxxxxxxx
>>> On Tue, 30 Aug 2005 16:05:05 +0800, "Jason Yan" <yanzhw@xxxxxxxxxxx>
>>> wrote:
>>>
>>> http://www.pocketpcdn.com/libraries/wmp.html
>>> PS Pocket PC doesn't support Win32 APIs, it's a CE device.
>>>
>>> Cheers - Neil
>>
>


.



Relevant Pages

  • RE: Cannot establish a connection with physical device
    ... I did uninstall the SDK and strangley enough the Emulators that are included ... > have you tried uninstallig PocketPC 2003 SDK? ...
    (microsoft.public.pocketpc.developer)
  • Re: Blueooth .Net SDK now available
    ... Our SDK works with VB.Net on a PocketPC target, but nothing we have works on ... does but the question comes up of whose bluetooth stack to sit on top of - ... >> Tim Johnson ...
    (microsoft.public.pocketpc.developer)
  • Re: EVC3, EVC4 or VStudio 2005?
    ... I originally wrote a prototype of our product for PocketPC 2003 using EVC4. ... The PocketPC 2003 SDK is included in the installation of VS2005, ... so sme of the code in some of the header files don't compile. ... Fortunately, the SDK for WM5 conforms to the new C++ language, but this SDK ...
    (microsoft.public.pocketpc.developer)
  • Re: At a loss for development environment
    ... go to the Settings -> System, it says "Microsoft Windows CE Version 2.11 ... Nowhere can I actually find the word "PocketPC" on the PDA or in any of its ... When I try to install Symbol's SDK, ...
    (microsoft.public.pocketpc.developer)
  • Re: Where is d3d8.lib?
    ... DirectX is not supported on Windows Mobile devices, including the PocketPC ... > I have installed the PocketPC 2003 SDK, and I want to develop a Direct3D ...
    (microsoft.public.pocketpc.developer)