Solved

Playing video on a PocketPC/Windows Mobile device

Posted on 2006-11-09
7
1,642 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

827 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