Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Drs.Bob) Dr.Bob's Delphi Clinics Dr.Bob's Delphi Courseware Manuals
View Bob Swart's profile on LinkedIn Drs.Bob's Delphi Notes
These are the voyages using Delphi Enterprise (and Architect). Its mission: to explore strange, new worlds. To design and build new applications. To boldly go...
Title:

.NET Compact Framework 1.0 SP3

Author: Bob Swart
Posted: 9/24/2005 12:18:27 PM (GMT+1)
Content:

In the past few days, I've been playing with the .NET Compact Framework 1.0 SP3 again, writing some Delphi 2005 applications for it (using the Delphi 2005 for .NET Compact Framework Technology Preview compiler).

Since I don't have a Pocket PC (or SmartPhone) of my own, I had to install the Microsoft Windows CE 5.0 Device Emulator, which installs just fine on Windows 2000 SP4 or XP SP1 (or later), but didn't seem to recognise the Windows 2003 (SP1) operating system on my laptop. Good thing it's a dual-boot machine (also featuring Windows 2000), but it was quite a surprise for me. I had the Windows CE 5.0 Device Emulator already up and running for my previous tests, but those were on an XP workstation (and now I needed my laptop, since I'll be on the road next week at EKon 9 in Frankfurt).

Anyway, once the Windows CE 5.0 Device Emulator is installed, you can install either the Pocket PC or the SmartPhone emulator image (or both, of course), but first you need to install the corresponding SDK. Without the SDK, the emulator image won't install. When you install the SDK, you get a warning that it couldn't find Microsoft eMbedded Visual C++ 4.0 (and that you now need Visual Studio 2003 to write Pocket PC - or SmartPhone - apps). Since we can now use Delphi as well, it doesn't hurt to do a custom install of the SDK and uncheck the Visual C++ code samples.

Finally, when both the SDK and Emulator Image have been installed, you can start the emulator (with a long command-line, as described in the article by David Clegg for example). The Pocket PC 2003 Emulator image already contains the .NET Compact Framework, and the Delphi 2005 for .NET Compact Framework Technology Preview already comes with a number of precompiled .dcpil files, so for your first applications you do not even have to install the .NET Compact Framework on your development machine.

The hello world application that you see here on the right, is an example of something built on a Windows 2000 SP4 machine without the .NET Compact Framework, compiled using the Delphi 2005 (CF.NET) command-line compiler, and deployed in the Shared Folder.

If you want to build more complex application, you may want to install the .NET Compact Framework anyway, and import some of the additional assemblies so you can use these in your Delphi 2005 CF applications as well. Stefan Cruysberghs has written a very helpful article that shows how to do that (or where to find these additional assemblies). In this article - which can be seen as a continuation of the article of David Clegg - Stefan also gives an overview of the available Compact Framework components in the Windows Forms, Components and Dialogs categories, including missing properties, events and other issues.

In the meantime, my laptop is now fully configured, so I can continue my article about Delphi 2005 .NET Compact Framework Development for the november issue of The Delphi Magazine. If I encounter some more interesting things along the way, I'll let you know.

Back  


7 Comments

AuthorPostedComments
SkinTex05/10/27 21:24:47Thumbs up, i really needed an article like this.
Peter Edwards05/11/02 14:38:20Im hanging on in the hope that I can write all my stock management routines for PDA using delphi systems instead of buying in 3rd party apps that only do half of what I want.
Peter Edwards05/11/02 14:38:39www.pink4487@aol.com
Does Delphi 2006 have anything over Delphi 2005 in CF support...05/12/09 22:18:04I read that the 'Preview' compiler is built in in 2006... which is shipping now, but their still arent designers. Im wondering if theres an advantage to upgrade to 2006 over just using D2005 with preview compiler? CF support is my main interest in Delphi upgrades these days... Im still using D7 for most of my development... been drooling over potential CF support from Delphi since D8. alchemist@digital-alchemy.net
Toby Groves06/01/05 00:58:21Well I must say I'm rather disappointed at the lack of any real support for the CF in D2006, especially as the preview was demonstrated at the D2005 launch event I attended in 2004. After a year and a whole new version I'd frankly have expected D2006 to have more support than this. D2006 has many good things in it but in certain areas such as this I'm looking enviously at VS2005 and wondering how long Delphi is going to lag behind.
Yaser Farid06/03/13 07:24:39I've been working with Delphi version 1.0 and was hoping that Delphi would add support for symbian, then I thought atleast it should support CF when they planned to move to .NET but it didn't work out. Why in the world would I use Delphi if I want to develop application in .NET I would rather use VS2005, which is not only more user friendly but supports everything Framework throws at it. I'm not even usre if Delphi works with 2.0 of Framework and Borland isn't making it any better to help me stick to Delphi other than Win32 Applications.
Bob Swart 07/11/02 10:08:17Dear comment spammer, please find somewhere else to play, thanks in advance!


New Comment (max. 2048 characters, no HTML):

Name:
Comment:



This webpage © 2005-2017 by Bob Swart (aka Dr.Bob - www.drbob42.com). All Rights Reserved.