?
Solved

Playing video on a PocketPC/Windows Mobile device

Posted on 2006-11-09
7
Medium Priority
?
1,647 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 1500 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
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

765 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