1

In my case, I have project A (in C#) that call a library from project B(C++). A interacted with B by C++/CLI method. In project B, we applied this code to avoid alert exception like this question:

AFX_MANAGE_STATE(AfxGetStaticModuleState());

However,in project B we have stored some interface control in MFC in a .rc file. Unfortunately, when I call the interface control of project B, it doesn't show in project A.

Solution (didn't work) I have searched and find a solution like question. In this case, they converted rc file to res file to import to project A. However, when applying RC tool we saw that all of include not found, unlike in Visual Studio.

How can I run project A and see interface control defined in .rc file of project B?

Community
  • 1
  • 1
Hung Phan
  • 33
  • 2
  • Does each and every public export of your DLL-project (B) set the appropriate module state? You should probably read [MFC Module State Implementation](http://msdn.microsoft.com/en-us/library/ft1t4bbc.aspx) to learn, why this is necessary. – IInspectable Jan 19 '15 at 10:20

0 Answers0