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.