Error 1 error LNK2019: unresolved external symbol _MAPIFreeBuffer@4 referenced in function "public: virtual long __stdcall CMailRuleClient::ProcessMessage(struct IMsgStore *,unsigned long,struct ENTRYID *,unsigned long,struct ENTRYID *,unsigned long *,enum _MRCHANDLED *)" ( ProcessMessage@CMailRuleClient@@UAGJPAUIMsgStore@@KPAUENTRYID@@K1PAKPAW4_MRCHANDLED@@@Z) mapirule2.obj
I get this error when I build my project.
Can you help me what is the problem I tried to change some settings about linker but nothing changed.
thanks.

win32 application
nhanson
Rajasekhar
As for the _CLSID_MapiRuleSample error, I guess this is your own identifier and you maybe forgot to add some cpp file to your project.
sg60
I also have another error too:
Error 1 error LNK2001: unresolved external symbol _CLSID_MapiRuleSample mapirule2.obj
this is also unresolved symbol error
thanks again
Victor DelPrete
You should write a wrapped class in order to migrate your code into the managed code. This solution can makes your code compatible with the latest VS IDE, I guess.
A native function call may encounters some errors in the latest VS, the whitepaper I recieved says that it is better to write a managed code and try building your project again.