Re: port VS2005 project to WindowCE5.0
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 4 Oct 2006 09:00:44 -0700
No. Managed C++ is not supported by the .NET Compact Framework run-time.
It's possible that a particular program might work, but there's no general
support.
No, you're better off just starting on porting and working around the road
blocks that you come to as you come to them. Any 'sample' porting project
is just going to be concentrating on one type of thing that needs to be
ported and, without knowing what sort of project you're trying to port, it's
as likely as not that you won't need to know that particular thing. The
only key piece of information is that *all* Windows CE programs are Unicode,
not ASCII, based. This is mostly a C/C++ point, but it's critical. All
controls, when asked to return strings, return Unicode, and take Unicode
when receiving strings. DO NOT IGNORE WARNINGS FROM THE COMPILER ABOUT
BEING UNABLE TO CONVERT char* TO unsigned short*, ETC. Those are important.
Paul T.
"d8341" <d8341@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1208FB9E-96A0-4ED3-9E74-74B9B18F3EFC@xxxxxxxxxxxxxxxx
Thanks Paul, it works!
I have another question:
Can I port my previous Managed C++ project onto WindowsCE5.0 with this
VS2005 tools?
I tried to "New" a project under "Visual C++" -> "Smart Device", but I
cannot find "Window CE 5.0" under this catalog, while it exists under
"Visaul
C#". Does this mean I cannot port my previous C++ code to CE and I have to
recode that project into C#?
Can you suggest some samples about "How to" port C++ project to CE?
Thank you very much!
"Paul G. Tobey [eMVP]" wrote:
1. You have to install the QFE that contains that. QFEs are linked from
www.microsoft.com/embedded. Choose Windows CE in the left-hand menu and
look for the Platform Builder 5.0 Updates item on the resulting page.
Install *all* QFEs, starting with the Yearly Update 2004 and earlier,
then
Yearly Update 2005, then monthly updates from January through August. I
don't recall which has .NET CF 2.0 in it, but it's probably the 2005 one.
2. Yes, this is kind of screwed up. You can't use PB 5.0 to generate an
SDK
for VS2005 that will show up. Since you're using the .NET CF, though,
just
targeting plain old Windows CE 5.0 should be fine.
For getting connected to the real device, you want the page linked below:
http://msdn2.microsoft.com/en-us/library/ms228708.aspx
Paul T.
"d8341" <d8341@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:740511DC-647E-4668-AFAA-D8BD75928277@xxxxxxxxxxxxxxxx
We are doing a project to build PC based motion controller. We would
like
use
WinCE5.0 as the OS and port existing VS2005 code onto it. I installed
CE
evaluation and .NET compact framework2.0 on my machine.
I have a few questions regarding to VS2005 and Windows CE5.0
1.
I would like to build application with Visual Studio .net 2005 and
download
the application to CE platform. But in PlatformBuilder Catalog I cannot
find
Compact Framework 2.0. Do I miss something during installation?
I definitely installed Visual Studio 2005 and .NET compact Framework
2.0.
It
is listed in the "Add/Remove" application in Control Panel.
Do I need any further configuration in CE Platform Builder?
2.
I have 3rd party BSP (VIA CLE266/CN400/CN700 CEPC) installed on my
development PC, and when I build device application with C# WinCE 5.0
application for "Smart Device" in VS2005, the "Target Device" list
doesn't
contain that 3rd party board.
Do I need any modifications in my VS2005 environment so that it can
"see"
the real target board?
In addition, if I assign the target IP address in VS2005 and try to
deploy
the application onto the target device, I run into "ActiveSync is not
installed" error, no matter if I included "ActiveSync" component into
the
OSDesign or not. Does anybody have any suggestions regarding to this
situation?
Thanks!
.
- References:
- Re: port VS2005 project to WindowCE5.0
- From: Paul G. Tobey [eMVP]
- Re: port VS2005 project to WindowCE5.0
- From: d8341
- Re: port VS2005 project to WindowCE5.0
- Prev by Date: Re: Asynchronous I/O development in CE
- Next by Date: Re: Windows CE 5.0 SDK
- Previous by thread: Re: port VS2005 project to WindowCE5.0
- Next by thread: Re: port VS2005 project to WindowCE5.0
- Index(es):
Relevant Pages
|