I have found out that it is essential to derive my base MFC class from CWinApp
and use AFX_MANAGE_STATE(AfxGetStaticModuleState())
for every exported method! (if MFC is dyn. linked)
I would like al开发者_运维百科so using an pointer to external native C++ object in MFC dll constr (I should use extension dll - but how work this with CLI???)
Have someone a good example for doing this kind of wrapping ?!
Thanks and greets,
leon22
I'm not sure what your question or your problem is. You don't always need to use the AFX_MANAGE_STATE macro, it depends on the circumstances. What's a 'MFC dll constr' ? What does 'I should use extension dll' mean? (I know what an extension dll is, but what do you mean by 'should' in this context?) What does 'this kind of wrapping' mean?
精彩评论