开发者

Adapt MFC dll for using in a C++/CLI wrapper

开发者 https://www.devze.com 2023-03-22 13:20 出处:网络
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 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消