Using an Embedded c++ lib, in a c# smart device application

  • Thread starter Thread starter EchoRev
  • Start date Start date
E

EchoRev

Hi all, this is my first post and if I'm honest its not a particularly
new one but here goes

I've read on several different sites on the web about calling unmanaged
c++ code from within a c# smart device application. Most of these
articles have been geared toward using standard visual c++.

The method that I want to call is within a library complied to run
under embedded visual c++, the issue that keeps coming up when ever I
try to run the complier is that it doesn't seem to understand the
__nogc or __gc tags respectively (Garbage Collection)

Does anyone know of any good points (or links) that they could throw in
my direction on how best to achieve this.

Thank you for your time
 
Hi all, this is my first post and if I'm honest its not a particularly
new one but here goes

I've read on several different sites on the web about calling
unmanaged c++ code from within a c# smart device application. Most of
these articles have been geared toward using standard visual c++.

The method that I want to call is within a library complied to run
under embedded visual c++, the issue that keeps coming up when ever I
try to run the complier is that it doesn't seem to understand the
__nogc or __gc tags respectively (Garbage Collection)

Does anyone know of any good points (or links) that they could throw
in my direction on how best to achieve this.

AFIAK it's not possible to develop a m ixed mode WinCE application using the
tools currently available. You can do all native with EVC or pure .NET, but
not a mixture.

VC++ 2005 will support what you're trying to do, but it won't be released
until... well, sometime in 2005.

-cd
 
Actually VS 2005 will still not support this since the Compact Framework
(the version of the .NET framework that CE uses) does not have the features
to support mixed mode applications.

Ronald Laeremans
Visual C++ team
 
Ronald said:
Actually VS 2005 will still not support this since the Compact
Framework (the version of the .NET framework that CE uses) does not
have the features to support mixed mode applications.

Bummer.

-cd
 
Wouldn't it be possible thou to pass any data types that I have to the
unmanaged c++ by use of a DllImport and a static extern????? The only
real problem that I can see is on the c++ side. But even then I've
tried and succeed to pass an abstract type like LPCTSTR, the issue then
becomes how I convert that into a more feasible type?
Still thats crap about vs 2005
 
Back
Top