I'm writing a Win32 DLL that supplies "code-only" functions; there are no resources in the DLL, and the DLL has no UI. The contents are only Utility / Helper functions.
Generally, Microsoft recommends that AFX_MANAGE_STATE(AfxGetStaticModuleState());
be at each DLL-entry point. But my understanding is that its purpose is to make sure that resources are searched and loaded properly.
If my DLL has no resources, do I still need to AFX_MANAGE_STATE
? Why?
EDIT: While my DLL is not specifically MFC-oriented, I am using some basic MFC types, such as CString and CList.