In Visual Studio .NET 2003 select Smart Device Application as your project
type under either Visual C# Projects or Visual Basic Projects. If this is
not present then you will need to add in the Smart Device Programmability
option to Visual Studio .NET using the Add/Remove programs applet in Control
Panel.
Selecting Smart Device Application will launch a wizard which will prompt
for application type (Windows Executable, Class Library) and platform
(CE.NET or Pocket PC)
There is a good introductory article on P/Invoke here:-
http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx
You may find some of the other articles at that site useful also.
For examples of P/Invoke in action you may be interested to see the WinAPI
open-source project at OpenNETCF - (
www.opennetcf.org/winapi.asp) which has
P/Invoked functions for much of the core windows CE API functions.
If you are interested to see Microsoft's roadmap for tools over the next few
years take a look at
(
http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx#whidbey) - the
next major release of Visual Studio "Whidbey" will support C++ native
development in the same IDE. So while the eVC product may well be retired in
due course (the roadmap does not give exact release dates) if you are
developing in C++ with eVC your code can be used in the future Visual Studio
version.
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com |
www.opennetcf.org
Peter,
If I want to develop for .NET Compact for Windows CE,
which project template do I select in VS.NET? Is there
one?
Also, can you point me to sources that explain how to use
the Invoke in the .NET or is it so general that it would
be covered in a book?
Ultimately, I would like to develop .NET applications for
CE but need to support Smart Cards. I am confused on
which compiler to use, VS.NET or Embedded C++ 4.0.
Is Embedded VC++ just a interim solution for MS until
the .NET compiler supports? Is there any embedded
support in VS.NET?
Again, I appreciate your help.
Peter