mobile5编译问题

来源:互联网 发布:js stringbuffer 使用 编辑:程序博客网 时间:2024/05/05 01:10

I built the filter with the windows mobile 5 smartphone SDK so I don't know if pocket PC would offer additional complications. I didn't start by building the EZRGB24 sample directly, rather I started out building the 'nullnull' renderer in the DX9 SDK samples and check this worked when added into my DS graph. When I was confident this was working I then modified this code to extend CTransformFilter and swapped in bits of code from the EZRGB24 sample until I had a working filter for my RGB image processing.

Build a new VC++ smartphone project (MFC smart device DLL) and add in the .h and .cpp from the nullnull renderer sample. There are a few linker errors to kill, you need to do the following (gleaned from various google searches sorry I didn't note the forum names):

(In Linker->Input) Add the following additional dependencies:

strmbase.lib strmiids.lib uuid.lib ole32.lib mmtimer.lib coredll.lib

(In C++->Language) Set 'Treat wchar_t as Built-in type' to No

(In C++->Preprocessor) Chop '_DEBUG' off the front of the 'preprocessor definitions' string

Once you get a .dll from the build, you can copy it to the smart device and register it using the regsvrce util. Then you can add it in to your DS graph in your main app in the usual way.

good luck!

摘自:http://www.windows-tech.info/14/73cda4a8863baa6a.php