Solved

Playing video on a PocketPC/Windows Mobile device

Posted on 2006-11-09
7
1,633 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now