question

VishnuGopalakrishnan-8317 avatar image
0 Votes"
VishnuGopalakrishnan-8317 asked

How to use AFX_MANAGE_STATE(AfxGetStaticModuleState()) for an exported class?

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.


windows-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers