wrapping MFC class in CF

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?
 
M

Maarten Struys

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.
 

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