July 2005 - Posts

It finally works…

…it took some effort but this evening it finally worked.

This morning I first deinstalled VS2005 on my Win2000 machine, better start with a “clean” situation. Removed the rest of the components installed with VS2005 as well and installed everything again. At first the emulators wouldn’t start but after installing the Device Emulator Patch, I could at least start the emulator… first hurdle taken… that was done by the end of the afternoon.

Now getting the emulator connected to the internet through the host machine. As I found out, others had already faced the challenge and had overcome the hurdle. But don’t try to find these solutions using Google, look directly on the VS2005 forums which has a whole section dedicated to emulator problems. I followed some of the tips and tricks I found there, which included getting my emulator connected to my machine using ActiveSync (if you think about it it’s a logical thing because it’s the same way you can connect a real 3D PocketPC to the internet using another host machine) and configuring some connection settings in the emulated PocketPC. I first used the IE on the PocketPC to see whether it worked by just trying to open a webpage… second hurdle taken.

Once I got these first basics in place, I made a really basic application using a library called RSS.NET which contains classes for reading rss feeds into collections. I deployed it on the emulator without any serious deployment errors but I still get the message “The operation could not be completed. Unspecified error”. At first I thought it didn’t work at all, but browsing in the Program Files folder on the emulator, I did find my application… and it worked… third hurdle taken.

This way debugging doesn’t work so that’s one still to overcome, but now at least I can get started…

Posted by Ilske Verburg | with no comments

I had forgotten...

...the challenges you will definitely face when developing applications for a PocketPC. 

As you might have noticed, I don’t do much actual programming anymore working mostly as an architect or analyst. So when some of my colleagues started exploring VS2005, I decided it was time to catch up. A few years ago when the iPAQ was a real high-tech gadget, I build some demo’s using the eMbedded Visual Tools on my first iPAQ. So exploring CF 2.0 and the support for PocketPC development in VS2005 was the obvious choice for me.

Now, three evenings later, I’m starting to remember the challenging nature of PocketPC development. And I’m still trying to get over the first hurdle… getting everything configured and connect properly to be able to run and debug the really complex application “Hello World”. Less than 5 minutes, I hear you Win- or Web-developers think… dream on… device development works on a different time scale.

First I installed VS2005 on my Win2000 “R&D” machine… should be supported according to the system requirements. But my fantastic “HelloWorld”  application won’t deploy on the device emulator… I get the message that the device emulator is not installed?!? Ok… next try… first deploy on my PocketPC… install latest version of ActiveSync (3.8)… won’t deploy… I get the message install latest version of ActiveSync?!!? Search for help… aha… it should be ActiveSync 4.0 beta (here)… why didn’t I think of that immediately. Ok… third time right… device connected… so far so good… deploying… unknown error… ggrrr etcetera.

I give up… at least for now… maybe my legacy operating system is the problem... so I try it again on my work laptop where I use Virtual PC’s for my R&D adventures… XP with VS2005. Now I have an emulator within an emulator… seems to be too much of a good thing… I get IP conflicts when starting the emulator. Search for help… follow configuration instructions found here … it works!!!  But my victory is only short-lived when I read the small print… with this configuration the PocketPC will not be able to access the network resources… so I can’t get the connection to the internet working from the emulator… minor issue you would think… but I want to build an rss feed reader…

Posted by Ilske Verburg | with no comments
Filed under: