Solved

Playing video on a PocketPC/Windows Mobile device

Posted on 2006-11-09
7
1,643 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:bovlk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 total points
ID: 17907123
0
 

Author Comment

by:bovlk
ID: 17907411
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.
0
 

Author Comment

by:bovlk
ID: 17907498
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 ==========
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 48

Expert Comment

by:Mikal613
ID: 17907528
did you download the SDK from microsoft?
0
 

Author Comment

by:bovlk
ID: 17907752
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.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 17907787
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
:)
0
 

Author Comment

by:bovlk
ID: 17913577
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
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ActiveSync authentication issue with a single mailbox 1 52
is there a way to jailbreak IOS 8.41 8 72
Mobile phone 15 124
Jailbreak iPhone 6 Plus 4 45
When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question