469,623 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

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

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

Nov 17 '05 #1
4 1419
Ec*****@gmail.com wrote:
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
Nov 17 '05 #2
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

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl...
Ec*****@gmail.com wrote:
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

Nov 17 '05 #3
Ronald Laeremans [MSFT] wrote:
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
Nov 17 '05 #4
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

Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Matt Duligall | last post: by
3 posts views Thread by Casey Entzi | last post: by
reply views Thread by Nick White [MSFT] | last post: by
2 posts views Thread by Paulson | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.