mananged C++ with compact framework

V

Vincent RICHOMME

Hi,

I am trying to port an existing C++ class (unmanaged) to the .NET
framework to use it in my C# project.
After reading some articles it seemed that the easiest way is to use
managed C++. I have managed to compile it for PC but apparently managed
c++ is not available on Compact Framework.
I really don't understand why .....
Knowing that .NET uses IL code, wouldn't be possible to modify the
assembly to reference compact framework assemblies.
My class is quite big and I don't want to use P Invoke because I would
need to redeclare all my structures.
 
G

Ginny Caughey [MVP]

Vincent,

It is possible to get managed C++ to run on the Compact Framework, but it is
not supported and there isn't a lot of compiler or other help to warn you
about things you expect (from the full framework) that are different or
missing altogether on the Compact Framework and that you won't find out
about until runtime and even then it might not be obvious what the real
problem is. Although I'm aware of one commercial project that targets
Compact Framework with managed C++, the general recommendation is don't do
it.
 
V

Vincent RICHOMME

Ginny Caughey [MVP] a écrit :
Vincent,

It is possible to get managed C++ to run on the Compact Framework, but it is
not supported and there isn't a lot of compiler or other help to warn you
about things you expect (from the full framework) that are different or
missing altogether on the Compact Framework and that you won't find out
about until runtime and even then it might not be obvious what the real
problem is. Although I'm aware of one commercial project that targets
Compact Framework with managed C++, the general recommendation is don't do
it.

Even if my C++ class is just a wrapper around a crypto c lib (and my C
lib is only using libc). I am not using any win32 functions.
 
P

Paul G. Tobey [eMVP]

The run-time doesn't guarantee to support managed C++ at all. What works
and what doesn't work is not documented. If it's just a wrapper, it should
be pretty easy to recode in C#...

Paul T.
 

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