eVC to .NET CF

  • Thread starter Thread starter wanderer
  • Start date Start date
W

wanderer

hi,

Is there an easy way to take a library built in embedded
Visual Studio and compile it to a .NET CF compatible
library? I've created a native-code wrapper but in VS.NET
2003 I can't get some of the environment variables from
eVC to compile.. is there a way to do it from eVC?
Thanks.
 
I'm not quite sure what you're asking. You cannot compile C++ for devices
using Studio 03 - the CF only supports VB and C# at this time.
 
Right. So basically, I need to compile my library as
a .NET recognizable DLL for me to use the functions. To
do that, I'm trying to use .NET 2003 C++ .NET to build
a .NET library. Then I can use C# or VB to code for
Pocket PC using the .NET library. To build the .NET
library, however, I'm running into trouble because it
seems that some variables recognized in my eVC
environment aren't recognized in my .NET 2003
environment. I'd like to build a .NET library from eVC if
that's at all possible.
 
I'm still confused. You can call unmanaged code from managed code only
through P/Invoking. That can only be done if the native code publicly
exports a function, but that's not unique to the CF - that's true with C/C++
as well. There is nothing "special" that must be done beyond that to be
able to call into an unmanaged DLL.

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=255
 
You cannot build a .NET CF assembly using C++ - VS2003 does not support it
nor does eVC (3 or 4)
You also cannot build anything that will run on Windows CE using VS2003 and
C++. You need to use eVC3 (for WinCE 3.0) or eVC4 (for CE.NET 4.1+) and
build a C++ DLL that exports functions that can be P/Invoked
 
Back
Top