Mix/match windows forms and mfc views?

D

Duncan Smith

I can create a new C++/CLI app and use managed UI controls, even make
the form an MDIParent and launch child forms.

Could I create an MFC view like CView - and use it within the managed
app? I have set the project settings to include MFC as a shared DLL,
but if I use things like AfxGetApp() then I get undeclared identifier
variables, presumably because the app isn't an MFC app...

Maybe I should start with an MFC app, and then add managed classes
rather than the other way around. Are there any good resources on the
internet showing how?

Just using the managed equivalent isn't an option because we have lots
of legacy MFC related libraries/controls, etc.

Regards,

Duncan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top