I'm sorry, I'm confused. Do you mean this project was done using managed
C++ on CF?
Or was it ported to native C++?
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no
rights.
message Ilya,
One thing that may change the landscape for Managed C++ on devices is
that the devices are becoming increasingly powerful as well as widespread
in the marketplace. I am aware of a commercial project that involves
porting existing managed C++ code to devices now, and a few years ago I
doubt that would have happened. They have it working, but as you pointed
out it wasn't an easy thing to do. They did tell me that if the Managed
C++ compiler just had a switch that would warn them what code wasn't
supported on .NetCF, that would have helped a lot - so maybe in a future
version this could be considered.
Ginny Caughey
.Net Compact Framework MVP
C# and C++ .NET compilers are using some special functions at runtime
(say,
in System.Runtime.CompilerServices) for same statements.
VB needs even more support from runtime to implement VB6 compatible
functionality.
This is not that unusual if you consider some C# statements (e.g.
'foreach'
and 'using') can actually use your custom code to operate.
CF only implements a subset of these workers. Some functions used by
Managed C++ are not implemented.
In fact, even some functions used by C# are not implemented.
For example, try compiling this C# code for CF: volatile int a;
Or, try getting unsafe pointer to a string (both fixed in V2).
Upcoming CF V2 won't support Managed C++, sorry. The demand for it was
very low compared to other features.
I would guess there's no good reason to use Managed C++ for new projects
and there's not that much legacy C++ code for PPC.
Also, there are workarounds like using native C++ (with significant
performance benefits) or even porting C/C++ to C#.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: "Eugene Mayevski" <
[email protected]>
References: <
[email protected]>
<
[email protected]>
Subject: Re: Managed C++ for .NET CF?
Date: Fri, 31 Dec 2004 22:13:12 +0200
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Comment-To: "Ilya Tumanov [MS]"
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: ip.82.144.219.9.dyn.pool-1.broadband.voliacable.com
82.144.219.9
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13
phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:67793
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
Hello!
You wrote on Fri, 31 Dec 2004 19:42:34 GMT:
ITM> No, you can not, sorry. Managed C++ is not supported by CF
runtime.
Hmm. An interesting statement ("supported by CF runtime"). As I
understand,
the language compiler accomodates the generated code to target
platform.
Or
this is not the case for .NET CF and the runtime has explicit support
for
certain VB- and C#-specific code?
Also, with upcoming VS.NET 2005 (which includes native code generation
for
WinCE), will the situation become different, i.e. will Managed C++
support
be added?
With best regards,
Eugene Mayevski