AFX_MANAGE_STATE Usage?

  • Thread starter Thread starter rajayan
  • Start date Start date
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.
 
Back
Top