dougherty distilled

Bryan Dougherty's thoughts on technology and software development.
in

Upgrading to Windows Mobile 5.0 Smartphone

I finally got around to upgrading some code originally written in Visual Studio 2003 for Windows Mobile 2003 Smartphone.  Since it wasn't straight forward, I thought it might be helpful to share my experience.

Before starting, I installed Visual Studio 2005 and the Windows Mobile 5.0 Pocket PC and Smartphone SDKs. The solution I was upgrading had one Smart Device Application project and a few referenced components.  In one of the components, I had manually referenced the System assemblies for the 1.0 Compact Framework.  The other assemblies had no notable references.

Opening the solution in Visual Studio 2005 prompted me to upgrade the code.  The conversion was successful according to the report.  I thought that maybe switching the Target Platform via the context menu option on the Smart Device Application might be all I had to do.  I was wrong.

I was running into the following error when compiling: "Version 2.0 is not a compatible version."  Figuring that this was related to the my manual Compact Framework references, I realized I had to update some of the references to the 2.0 version.  That didn't fix the issue, though.

To fix and fully upgrade the code, I had to create new projects to replace all of my old projects.  When creating the new projects, I found that you can actually now create Class Library projects specifically for the Smartphone. 

This is really nice because when adding references it only shows the Compact Framework 2.0 versions.  Taking that a step further, I could NOT reference an assembly that wasn't created this way.  After creating new shell projects and hooking up my references and resources, everything compiled and ran.  It didn't seem to run as efficiently as it did in the old emulator, though...but that may need to be a whole new topic.

Comments

Nathan said:

Hello, I am Nathan and I am 10 years old.
I'd like to develop applications for the smartphone using Visual Basic .NET 2003.
I installed the SDK but nothing extra appeared!
Please Reply to nathan.zadoks@gmail.com .
# April 2, 2006 11:10 AM

Steve said:

Nathan I think that your problem is that to develope smart device applications you need either VS2003 Professional or VS2005 Standard. The product you have, Visual Basic.NET 2003 is only a standard edition.

Regards

Steve
# April 4, 2006 2:14 PM

bdougherty said:

I'm pretty sure you need a paid version of Visual Studio, but I couldn't find it in writing. Here's some more info on requirements, though:

https://www.microsoft.com/downloads/details.aspx?familyid=A6C4F799-EC5C-427C-807C-4C0F96765A81&displaylang=en

-Bryan
# April 5, 2006 10:25 AM

Kevin Winchcombe said:

I've tried developing a small app (form accessing web service data) for my MPX220 but can't deploy it. I think it may be due to the app being for CF2 but my phone only has CF1 on it. I've tried to install CF2 on the phone but can't figure out how to do this.

How do you get CF2 on the MPX220?
# April 15, 2006 2:21 AM

bdougherty said:

Unfortunately (I say this because this is my current phone, as well) the MPX220 doesn't support CF2 because it doesn't run Windows Mobile 5.0. Check out this link to see the full list of supported combinations.

http://msdn2.microsoft.com/en-us/library/ms172550(VS.80).aspx

-Bryan
# April 18, 2006 8:55 AM

caleb said:

according to the link given, why can't the mpx220 operate on windows 5.0? isn't the link saying that for version 1 and 2, the smartphone can support 5.0 platforms? thanks
# May 30, 2006 7:17 PM

bdougherty said:

What I was saying is that the mpx220 comes with Windows Mobile 2003 OS which only supports Compact Framework version 1.0. To install the 2.0 framework, the Windows Mobile 5.0 OS would need to be there. Maybe technically the mpx220 can run Windows Mobile 5.0 as it's OS. I doubt it, but I don't know.  Probably a Motorola question.

-Bryan

# May 31, 2006 9:51 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)