Re: Loading Media Player
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Thu, 9 Nov 2006 14:17:12 -0700
It's the media player application itself. You could download the Windows CE evaluation and look at the source; it's in \WINCE500\PUBLIC\DIRECTX\SDK\SAMPLES\WMP\CEPLAYER.
This code that you're using, it was designed originally for the desktop or this was code purported to work on a PPC device?
Paul T.
"Lourenço Teodoro" <lourenco_xxi@xxxxxxxxxxx> wrote in message news:eY3gD3DBHHA.4892@xxxxxxxxxxxxxxxxxxxxxxx
Paul,
I also have one question; when looking at the Microsoft Web site, I see that there is an example named CEPlayer, is that example only available to OEMs?
I am using a Dell AXIM X 51. The about screen gives me the following information:
Microsoft Windows MobileTM version 5.0
OS 5.1.1702 (Build 143361.0.1)
Processor: Inter(R) PXA270
Please let me know if there is anything else that you need.
Thank you in advance.
Lourenço.
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com> wrote in message news:OB2q7jBBHHA.3396@xxxxxxxxxxxxxxxxxxxxxxx
I'm thinking that we're going to need help before we can do anything with that. What Windows CE version? What sort of device?
Paul T.
"Lourenço Teodoro" <lourenco_xxi@xxxxxxxxxxx> wrote in message news:ObxxFy5AHHA.2140@xxxxxxxxxxxxxxxxxxxxxxx
I wrote the following code that simply loads the Windows Media player into my ActiveX container. Unfortunately I cannot get it to work, I tried to debug and I verified that it fails inside the MFC
// This code is from OCCSite.cpp (extracted from the MFC source code).
if (dwStyle & WS_VISIBLE)
{
// control is visible: just activate it
hr = DoVerb(OLEIVERB_INPLACEACTIVATE); //HERE it returns 0x8007057e {Cannot create a top-level child window. }
}
else
{
// control is not visible: activate off-screen, hide, then move
m_rect.OffsetRect(-32000, -32000);
if (SUCCEEDED(hr = DoVerb(OLEIVERB_INPLACEACTIVATE)) &&
SUCCEEDED(hr = DoVerb(OLEIVERB_HIDE)))
{
m_rect.OffsetRect(32000, 32000);
hr = m_pInPlaceObject->SetObjectRects(m_rect, m_rect);
}
}
I would appreciate any help.
Regards,
Lourenço.
- Follow-Ups:
- Re: Loading Media Player
- From: Lourenço Teodoro
- Re: Loading Media Player
- References:
- Re: Loading Media Player
- From: Paul G. Tobey [eMVP]
- Re: Loading Media Player
- From: Lourenço Teodoro
- Re: Loading Media Player
- Prev by Date: Re: _beginthreadex vs CreateThread in CE
- Next by Date: Re: Loading Media Player
- Previous by thread: Re: Loading Media Player
- Next by thread: Re: Loading Media Player
- Index(es):
Relevant Pages
|