wrapping MFC class in CF

  • Thread starter Thread starter serkan ulucan
  • Start date Start date
S

serkan ulucan

We have a dll which uses mfc class and is writen in Embedded Visual tools
3.0. Can we wrap this dll to use in compact framework(C#), how?

How to wrap MFC class?
 
This question has been asked before, several weeks ago, when Alex Feinman
and Alex Yakhnin gave the following answer:

Alex Feinman: "You will need to create a wrapper
that flattens calls to the class instances in a same way
as people do for COM objects."

Alex Yakhnin: "Which means that you'd need to create a DLL in eVC++ that
exports the functions that'd create a instance of your MFC
class and call it's methods and properties. You then will
be able to use this DLL from CF through P/Invoke."

It is going to be a lot of work and you seriously should ask yourself if it
is worth the effort.
 
Back
Top