Re: Loading Media Player



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.

Relevant Pages

  • Re: Loading Media Player
    ... when looking at the Microsoft Web site, I see that there is an example named CEPlayer, is that example only available to OEMs? ... Microsoft Windows MobileTM version 5.0 ... I wrote the following code that simply loads the Windows Media player into my ActiveX container. ... // This code is from OCCSite.cpp (extracted from the MFC source code). ...
    (microsoft.public.windowsce.embedded)
  • Re: Substituting the main menu bar(s)
    ... I have been exploring the MFC source code and I think I can make it work. ... POSITION pos = GetFirstDocTemplatePosition; ... something is usually awry if an upward cast is needed) but I can use ... SetMenuto select between them as document windows open and close, ...
    (microsoft.public.vc.mfc)
  • Re: Extensive errors in EPG for Sky Digital in UK
    ... >> I have tried logging the fault on the Microsoft web site but this was ... >> not sent as it insists that my ActiveX security settings are not correct ... >said ActiveX control requires a DLL which is only available in Windows XP, ... number of scheduled recordings & enter manual recordings for the correct ...
    (microsoft.public.windows.mediacenter)
  • Microsoft Intellimouse Explorer 4 scroll problems
    ... I did some researches on google, on Microsoft web site I found nothing ... More deeply the vertical scroll doesn't work, both in Windows and games, ...
    (microsoft.public.windowsxp.hardware)
  • Re: SP2
    ... Hi Patty, You can get a sp2 disk from Microsoft. ... Go to Microsoft web site, under " product Families" click windows, go down ...
    (microsoft.public.windowsxp.basics)