虽然在ppc的帮助文档中的
SHLoadImageFile说明中指出wince中可以支持。
如下:
Requirements
Pocket PC: Windows Mobile 2003 and later.
OS Versions: Windows CE .NET 4.0 and later.
Header: Declared in Aygshell.h.
Library: Use Aygshell.lib.
原文是:
Pocket PC: Windows Mobile 2003 and later.
OS Versions: Windows CE .NET 4.0 and later.
Header: Declared in Aygshell.h.
Library: Use Aygshell.lib.
我现在在VisualStudio下面(“F:\Microsoft Visual Studio 8\SmartDevices\SDK\PocketPC2003\Lib\armv4”)找到了aygshell.lib,并将它复制到我的工程目录下以后,在我的程序里添加#pragma comment (lib,"aygshell.lib")编译后,还是出现error C2065: 'SHLoadImageFile' : undeclared identifier的问题。
我加上#include 后显示:Cannot open include file: 'Aygshell.h': No such file or directory
我加上#include "Aygshell.h" 后显示: fatal error C1083: Cannot open include file: 'winuserm.h': No such file or directory
然后我把'winuserm.h复制到我项目下面,并把#include 改成#include "winuserm.h"编译后则显示:
error C2061: syntax error : identifier 'SIPSTATE'
error C2061: syntax error : identifier 'IShellPropSheetExt'
唉!伤脑筋!