.NET Compact Framework 2 - Windows Mobile Development and Hacking General

I have Visual Studio 2005 on my PC plus the WM5 SDK. I have been developing a WM5 application and using the emulator to debug. It is nearly ready and thought that I would debug through the Wm5 PPC. I was then confronted with a warning message that the Compact Framework 2.0 was not installed on my PPC. OK I thought so downloaded the NETCFSetupv2.msi from Microsoft. When I try to run this I am told that I already have the .NET 2 Framework - presumably because I have VS 2005 etc.
Is there any way for me to get the CF2 onto my PPC without having to uninstall VS 2005???

Hi there,
Yes you can....
...\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\wce500\armv4i
go to this folder and pick up the frame work that suits you
copy the cab file "NETCFv2.wce5.armv4i.cab" for Pocket PC to Pocket PC and install it.....
regards
Aftab Alam

If you go into the properties of your project within VS2005 you will see a tab page for Devices. On that tab page change the target device to that which you want to deploy it to and lower down the page you will see a check box to "Deploy the latest version of the .NET CF". Ensure that box is checked. Debug your project and the CF will be installed on the device.

Related

Embedded Visual C++ Version 3.0

Hi,
I've been using emBedded visual C++ for 2-3 years writing application for pocket PC ( Mainly Ipaq'a).
I've recentrly invested in a Xda but when I attempt to "update my remote output file" from with embedded VC ++" i get the following error:
" Microsoft Active sync connection server failed, Please make sure active sync is running and retry the download etc.."
Of course Activate sync is running, and running correctly, Has anyone had this issue before ?
I can manually copy my executable to my device and run it,but then I can't debug. I'm in the process of download VC 4.0 and going to try that, but really wold like to runing in under the 3.0 version.
Any comments would be appreicated.
Bad news dude, eVC++ works only with PocketPC 2000 + 2002. The development environment you'll need to develop on 2003+ is either eVC++ 4.0 or Microsoft Visual Studio.NET.
Thanks for the update,
I've installed Embedded VC 4.0 and the SP3, Now I can download to my XDA which is great.
Now I want to maintain backwards compatiable and download to my ipaqs in 2002, I can't change the actiive configuration to PPC2002
Is there a way to compile my application for both 2002 and 2003 using VC 4.0 or do I need to maintain both IDE's
Sorry but there's no way to maintain both 2K2 and 2K3 targets from eVC 4. You can have the same set of source code but eVC 3 + 4 have different project file types. Have a project per IDE containing the same source code. Just remember when you add files to the project you're working on, remember to add the files to the other platform's project as well.
Happy coding!
-Timbo.

.NET CF v2 installation

I've tried to install .NET CF v2 on my Qtek 9000. (NETCFSetupv2.msi) . It gives me "Application manager cannot install this application on your mobile device due to an invalid setup file. Reinstall and try again". Did anybody manage to install .NET CF v2 ?
I had real troubles with this! I asked a friedn at Microsoft and his advice was to check that ANY .NET files that had been installed were DELETED before trying again. When an install fails on this it leaves asome bits hanging around and then the next try fails!
I cleaned any .NET stuff off, installed again and WOOHOO it worked!
It doesn't works. I found the damn thing (netcfagl1_0.dll) in the Windows folder. I was able only to see it (could not copy or move it, (even tried to change properties with Total Commander CE)). The file still remains "protected". Strangely I can't see it with "Explore PocketPC" from ActiveSync even with "Show hidden files and folders" and with "Hide protected operating system files" unselected.
YOOHOO!! I did it!
I found an article and bang! http://pluralsight.com/blogs/jimw/archive/2005/10/12/15504.aspx
I’ve wanted to get this post out for a couple of weeks but I guess better late then never.
A lot of you may have heard of the great Pocket PC device offer that was announced at PDC. At the event, Microsoft was subsidizing the sale of a limited number of iMate Jasjar Pocket PC Phone Edition devices at a remarkably discounted price of US$149. This price represents a more then 85% discount off of the list price of US$1,180.
The iMate Jasjar is quite cool because it has a high-resolution display (640 x 480) that can be viewed in both landscape and portrait. It also has a QWERTY keyboard, WiFi, Bluetooth, GPRS phone, 520MHz processor and has two, count ‘em, two cameras. And what makes it especially cool is that runs Windows Mobile 5.0 so it supports all of the latest Windows Mobile 5.0 managed APIs. Basically it’s a pretty cool device offering all the latest and greatest features. (see pictures)
Since PDC is a developer event, many of the folks who were lucky enough to successfully purchase one of the Jasjar devices wanted to try using Visual Studio 2005 to build a .NET CF 2.0 app and run it on their new device. For the people who didn’t have device experience, successfully building their first WM 5.0/.NET CF 2.0 app required a little more housekeeping to get started then they realized.
What I’d like to go over in this post is two of the more common issues I saw people encounter in trying to build their first .NET CF 2.0/Windows Mobile 5.0 application and run it on a real device.
Visual Studio 2005 doesn’t support Windows Mobile 5.0 out of the box.
As bizarre as this may sound its true. When you install Visual Studio 2005 it automatically installs .NET CF 2.0 along with the Pocket PC 2003 SE and Smartphone 2003 SE SDKs. It does not install the Windows Mobile 5.0 SDK. As a result you can’t build applications that take advantage of the Windows Mobile 5.0 APIs. To do so requires that you download and install the Windows Mobile 5.0 SDK for Pocket PC and/or the Windows Mobile 5.0 SDK for Smartphone. Once those SDKs are installed you can build Windows Mobile 5.0 projects that can access the Windows Mobile 5.0 managed libraries. If you install both of the 5.0 SDKs you’ll also add about 10 more emulators representing the various Windows Mobile 5.0 device form factors.
The absence of Windows Mobile 5.0 from Visual Studio 2005 isn’t a pre-release issue. Last I heard, it’s very unlikely that that the Windows Mobile 5.0 SDKs will be included in the RTM version of Visual Studio 2005 either. I’ve never heard an official reason for why the SDKs aren’t included but the prevailing theory is their size. Apparently the combined size of the two SDKs is large enough that if included, the Visual Studio 2005 install would no longer fit on a single DVD which would of course significantly complicate the production and distribution. Again just a theory, but if its true leaving the 5.0 SDKs as separate downloads does make sense.
Running a .NET CF 2.0 application on a WM 5.0 device, throws an exception indicating that a newer version of .NET CF is required.
There are actually two issues at work here. First, Windows Mobile 5.0 devices ship with .NET CF 1.0 SP3 installed in ROM, not .NET CF 2.0 therefore before a .NET CF 2.0 app can be launched .NET CF 2.0 must be installed. When Visual Studio 2005 would push the .NET CF 2.0 CAB file down to the device and attempt to initiate the CAB install onto the device, the installation of .NET CF 2.0 fails because of the new WM 5.0 security model.
As many of you probably know, one of the big changes in Pocket PC 5.0 was the addition of the one-tier security model (as opposed to the two-tier model on Smartphone 5.0). One of the features of the new security model is that remote actions performed on the device by the desktop can be restricted. In the case of the Beta 2 or pre-September CTP versions of .NET CF 2.0, the CAB file is signed by a test certificate that is not recognized by the Pocket PC 5.0 device. As a result,the remote installation fails.
The best way to eliminate this problem is to upgrade your Visual Studio 2005 installation to either RC1 or to a September or later CTP. In these newer versions of Visual Studio 2005, the .NET CF 2.0 CAB file is signed by a properly trusted cert and therefore installs fine. If you don’t have access to a newer version of Visual Studio 2005 you can still get around the installation problem by using either the Mobile Device folder on My Computer or the ActiveSync Explore feature to manually copy the .NET CF 2.0 CAB file1 down to the device. Once you’ve copied the CAB file down to the Pocket PC you can then use the File Explorer on the Pocket PC to launch the CAB file manually by just tapping on the file name. Now the CAB is still signed by an unknown cert but because you’re launching the installation interactively you are simply prompted with a warning indicating that the signer is unknown and then asked if it is OK to proceed. Simply select “Yes” and the CAB is installed as normal. Your .NET CF 2.0 app will now run fine.
Wow – there was still a bunch more stuff I wanted to talk about but this is already longer then I meant for it to be - Check out the pics of the Jasjar below if you haven't already.
1C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab
Click to expand...
Click to collapse

how to install net.framework 2 to wm2005 (XDA Zinc)

Thank's Before...
i need some help...
may be forum can help me how to install net.framework 2 to wm2005 (XDA Zinc).
i hope yours......
First, download the file from Microsoft's site to your desktop.
Then, connect your device to the desktop via the sync cable. Double-click on the installation file on the desktop to begin the installation. It will begin installing to your device through the ActiveSync connection.
I've found that it will work either from the device or the storage card. However -- for "core components" such as this, I prefer installing to the device.
*because this is in the development section*
An easier way is to just deploy a .net project to the device using vis studio 2005. It will automatically install cf 2.0

VB.NET on WM5 How?

Hey all, i develop small applications in visual basic 2008 and i want to know how i can get my applications to run on my i mate k jam, if i just put the app on and try and run it i get a really long error message which is:
File or assembly name
'Microsoft.VisualBasic, Version= 8.0.0.0
Culture=neutral
PublicKeyToken=B03F5F7F11D50A3A
Or one of its dependencies, was not found
and then when i close the appliction i get this error
NET CF Initialization Error
The application failed to load the required componants if the .NET compact framework is installed on the storage card, please ensure that this card is in place and launch the application again. if this fails, a re-installation of the .NET compact framework is recommended. Support info: 2147483643
(80000005)
Any help would be great thanks !
Have you already installed the .NET compact frameworks:
3.5: http://www.microsoft.com/downloads/...49-3c6b-42f1-9fd9-0041345b3385&DisplayLang=en
and
2.0: http://www.microsoft.com/downloads/...2F-07B5-4A8C-8A44-B4E1B196D5C0&displaylang=en
(I think VS2008 may only require 3.5, but it's probably better to install both)
and the SDK refresh
http://www.microsoft.com/downloads/...3A-A651-4745-88EF-3D48091A390B&displaylang=en?
Ok thanks for the advise i will try that and then post back with the results

Visual Studio 9 + WM6 SDK

Hi guys. I've been playin around with Visual Studio 2008, making a project for SmartDevices and my X1 using Visual Basic. I run the application in the built-in WM6Pro emulator provided, and it works fine. But when I make a CAB out of it, and try to install on device, it is unsuccessfull. When I compile it as EXE and run on device, it starts. But as soon as I try to click something within the program I get an error message saying "Cannot find file 'Micrsoft Visualbasic Resources" or something. I'm guessing I need to tell the application what dll's to reference..? But how? Anyone got a moment to explain? Thanks in advance,
//Fred
What .net compact framework version is your application targeted at?
I assume where you were working with the emulator, you were doing debugging/deployment inside visual studio? When you are doing this visual studio will automatically deploy the required files such as .net compact framework 3.5 I think.
Since if you are using .net compact framework 3.5, then you will need that installed for you X1, since WM6 naively only includes .net CF 2.
Give that a try and let us know about your results?
I have used 3.5 when emulating in VS. I have 3.5 installed on my device.
When you are testing your application out in the emulator, have you ever tried installing it with the same cab files?
And what is the result? (make sure when you install the cab file, that the directory is not the same as the 1 you have been deploying when debugging, otherwise if they are the same clean up the folder first)
It the cab file doesn't work when it is being installed on the emulator, then at least we can isolate the problem to the actual configuration on your X1 rather than the cab file.
I assumed you used the Smart Device CAB Project template in visual studio?
If that is the case you might have not configured the settings properly yet.

Categories

Resources