Managed C++ is unsupported on the compact framework, but it seems to
work to some extend anyway.
I have tried to make a .NET libarary in MC++, and it works fine. Or at
least it works fine when running it on a Pocket PC (emulator or real
device) from Visual Studio. The only thing to keep in mind is to not
use desktop framework specific functionallity.
But when I compile the library to a stand alone DLL and then include
it in a VB.NET PocketPC project I get the following error trying to
compile (or deploy) the VB.NET application:
Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'Foo' cannot be copied to
the
run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
What this error message says is basically that the libaray is
depenedent on the desktop version of mscorlib and that the VB.NET app
is targeted at compact framework. Therefore it refuses to compile.
But... if I for example add the VB.NET app and the MC++ library to the
same solution, I can run it on a real Pocket PC device if I start the
execution from inside Visual Studio (pressing "Play").
Has anyone tried this with more success than I have had so far?
Does anyone know if it is possible to tweek the MC++ library in some
way so it claims to be depenedent on compact mscorlib instead of the
desktop one? Maybe it still doesn'e work, but it would bring the
experiment one step futher.
/johan