_AFX_MAIL_STATE with dynamicly linked MFC dll
-
When I use my application statically linked to MFC, this is no problem. Since I'm trying to use localized resources (multiple languages), I need to dynamically link MFC. When I make this one change, the program no longer links. I get the following:
xxxx.obj : error LNK2001: unresolved external symbol "class CProcessLocal _afxMailState" (?_afxMailState@@3V?$CProcessLocal@V_AFX_MAIL_STATE@@@@A) Release/xxxx.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
Is there some way around this? For those who aren't familiar with what this is for - it's the code you often see on the web for sending email from within an application. It uses MAPI to accomplish this (at least that's my understanding). I've tried many searches but I only get code samples for sending email. Nothing on this linker issue. Thanks for any help you may be able to provide. -- modified at 9:44 Friday 18th November, 2005