1>------ Build started: Project: mapirule, Configuration: Debug Windows Mobile 5.0 Pocket PC SDK (ARMV4I) ------
1>Linking...
1> Creating library Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/SmsCaptureTest.lib and object Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/SmsCaptureTest.exp
1>mapirule.obj : error LNK2019: unresolved external symbol MAPIFreeBuffer referenced in function "public: virtual long __cdecl CMailRuleClient::ProcessMessage(struct IMsgStore *,unsigned long,struct ENTRYID *,unsigned long,struct ENTRYID *,unsigned long *,enum _MRCHANDLED *)" (?ProcessMessage@CMailRuleClient@@UAAJPAUIMsgStore@@KPAUENTRYID@@K1PAKPAW4_MRCHANDLED@@@Z)
1>Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/SmsCaptureTest.dll : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\Backup\我的文档\Visual Studio 2008\Projects\SmsCaptureTest\SmsCaptureTest\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\BuildLog.htm"
1>mapirule - 2 error(s), 0 warning(s)
解决办法:
mapirule.cpp 头上加上
#pragma comment(lib, "cemapi.lib")