AFX_MANAGE_STATE Usage?

R

rajayan

With what I know about this macro is that its mandatory to use this
one for the following cases

<<
1)
All COM interface methods in "ATL using MFC" components should have
this macro.
2)
All COM eventsink methods in "ATL using MFC" components should have
this macro.
3)
Exported functions (or functions inside exported classes) of "Win32
dlls using MFC".
4)
Exported functions (or functions inside exported classes) of regular
dlls using shared MFC.
Is this understanding correct??

For the 3rd case suppose I have a function inside a exported class,
which just uses some CString operations. Project as such uses MFC as
shared dll. So is it mandatory to use AFX_MANAGE_STATE at the beginning
of such functions??

Am using VC 6.0 environment. Yet to move to .NET.
 

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