I know that for the active context switching AFX_MANAGE_STATE(AfxGetStaticModuleState()) should call in a exported function.
But how it is used for an exported class. Did we call it on every public function?
I have a host application and MFC dll.
Host has a manifest as resource for ComCtrl32 5.82.
The DLL has a manifest as resource for ComCtrl32 6.0.
The Host main functions using the ComCtrl32 5.82 - Ok
The DLL init instance functions using ComCtrl32 6.0 - Ok
But the exported class function using ComCtrl32 5.82. My expectation is ComCtrl32 6.0 as I have used AFX_MANAGE_STATE(AfxGetStaticModuleState()) in the public function.