Link to home
Start Free TrialLog in
Avatar of bovlk
bovlk

asked on

Playing video on a PocketPC/Windows Mobile device

Hello,

I have to write an application that will play a video file on a Windows handheld device. This is the problem description:

1. the original video is an MPEG or DivX/XviD one, but it can be converted to any format you like before downloading to the device. If it requires conversion, please specify an address to download the conversion tool. The conversion tool should be free, but this is not required.

2. the program must run on a PocketPC 4.20.0 Build 14053 with Windows Media Player 9 device as well as an industrial computer with Windows Mobile 5.0. The PocketPC device has much higher priority right now.

3. Please give me a complete sample that will compile in eMbedded Visual C++ 4.2 or Visual Studio.NET 2005 using C++ and MFC. I've lost so much time trying to find a solution that I'm willing to pay for it. Programs that don't compile or run have low chance to be accepted as answer.

4. Sound is not required; however, if sound is present in the file, it must not prevent the program from playing the video.

5. The question is urgent

Thanks in advance for your replies
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bovlk
bovlk

ASKER

I tried the link and get the following error in eVC 4:

Linking...
CMediaBookmarker.obj : error LNK2019: unresolved external symbol "long __cdecl ATL::wce_ATL_CreateStreamOnHGlobal(void *,int,struct IStream * *)" (?wce_ATL_CreateStreamOnHGlobal@ATL@@YAJPAXHPAPAUIStream@@@Z) referenced in function "long __cdecl ATL:
:AtlAxWindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?AtlAxWindowProc@ATL@@YAJPAUHWND__@@IIJ@Z)
CMediaBookmarker.obj : error LNK2019: unresolved external symbol "long __cdecl ATL::wce_ATL_CLSIDFromProgID(unsigned short const *,struct _GUID *)" (?wce_ATL_CLSIDFromProgID@ATL@@YAJPBGPAU_GUID@@@Z) referenced in function "long __cdecl ATL::CreateNo
rmalizedObject(unsigned short const *,struct _GUID const &,void * *,bool &)" (?CreateNormalizedObject@ATL@@YAJPBGABU_GUID@@PAPAXAA_N@Z)
emulatorDbg/MediaBookmarker.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

Don't know why. I will try it in VS.NET 2005 yet.
Avatar of bovlk

ASKER

This happens in VS.NET 2005

1>------ Build started: Project: MediaBookmarker, Configuration: Debug Windows Mobile 5.0 Pocket PC SDK (ARMV4I) ------
1>Compiling...
1>MediaBookmarker.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be done only for single-threaded apps.
1>_ATL_APARTMENT_THREADED was undefined and _ATL_FREE_THREADED was defined because this Windows CE SDK does not have DCOM support
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a lower value
1>_WIN32_WINNT was undefined as it is not supported for Windows CE
1>E:\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.
1>CMediaBookmarker.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be done only for single-threaded apps.
1>_ATL_APARTMENT_THREADED was undefined and _ATL_FREE_THREADED was defined because this Windows CE SDK does not have DCOM support
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a lower value
1>_WIN32_WINNT was undefined as it is not supported for Windows CE
1>E:\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.
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '.\windows mobile 5.0 pocket pc sdk (armv4i)\debug\CMediaBookmarker.sbr': No such file or directory
1>Build log was saved at "file://d:\Bolek\podnikani\Codep\madla\demo\CodeProject\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\BuildLog.htm"
1>MediaBookmarker - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
did you download the SDK from microsoft?
Avatar of bovlk

ASKER

Yes, I installed the PocketPC 2003 SDK for eVC 4 and Windows Mobile 5.0 SDK for VS.NET 2003. I installed it to the default path and applications using MFC compile normally. May be I forgot to set some path or I don't know. I tried to look up help for the functions missing in the eVC case to add the appropriate libraries manually, but there's no help for at least the first one. If you wish, I can send you the projects, but I'm new here and don't know how to attach files to this conversation.
Look at the FAQ on the bottom of the link i sent you maybe the info can help you.

Also

There is no file transfer for this site.
Sorry
:)
Avatar of bovlk

ASKER

Thanks, I found the answer to compile the sample in eVC 4 in the FAQs, but I still don't know how to in VS.ENT 2005. I uploaded the projects to http://www.bolekvrany.cz/demo.zip. Please take a look. Thanks