By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,630 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,630 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.