Develop DirectShow on Windows Mobile 5

Source: Internet
Author: User
Recently, I have been trying to move some dshow items under XP to wm5.

The research process is painful and shared, and it is hoped that useful people can get started easily.

First, you need to be familiar with DirectShow development on the PC. In this regard, this article does not cover much.

Let's talk about the environment:
1. Windows Mobile 5.0 Pocket PC SDK
2. Vs2005
Install the above two.
3. Windows. Ce. Platform. Builder. V5.0 (some help and example programs will be available after installation) -- Optional

Project Creation:
1. Open vs2005, file-> New-> Project
2. Select visual c ++> smart devices> Win32 smart devices, enter a name, and click OK.
3. In the displayed wizard, click "Platform" and select "Windows Mobile 5.0 Pocket pc sdk" only,
Click "application settings", select "DLL" and "Empty Project", and click "finish ".

4. Open the project properties and add the link "strmbase. Lib strmiids. lib"
5. Add files to project (same as in PC)
6. Different from PC, a function must be added under the filter class.
Lpamoviesetup_filter cbouncingball: getsetupdata ()
{
Return (lpamoviesetup_filter) & sudballax;
}
7. Change "C/C ++-> language-> wchar_t as the built-in type" to "no (/ZC: wchar_t-)" in project properties -)"
8. In project properties, set "linker-> input-> module definition file" to "Yourfile. Def"

Others are the same as those in windows.

Registration:
You can develop a small program to help register
Very simple. Take VB.net as an example.
Create a smart device project, add a button, and call
"System. Diagnostics. process. Start ("/Windows/regsvrce.exe ","/foler/filter. dll ")" to register
Of course, you must first upload regsvrce.exe to the/Windows directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.