AFX_MANAGE_STATE and "Shared Add-in" wizard

F

Frank S.

I am working on an Outlook add-in created with the Visual Studio .Net
2003 "Shared Add-in" wizard. I am using C++/ATL/WTL.

Do I need to use "AFX_MANAGE_STATE(AfxGetStaticModuleState());"
statements in exported functions in the add-in DLL?

If yes, how do I change the project to avoid this type of error:

Compiling...
Connect.cpp
\Connect.cpp(33) : error C3861: 'AFX_MANAGE_STATE': identifier not
found, even with argument-dependent lookup
\Connect.cpp(33) : error C3861: 'AfxGetStaticModuleState': identifier
not found, even with argument-dependent lookup

Thanks,

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top