>net compact framework compatibility - P3300, MDA Compact III General

Hello All,
I've been looking over various board (and Google) but found no answer to this particular question. I hope you can help.
I have an employee who has just got himself an XDA orbit. This has come with MS .Net Compact Framework version 2 on it. We use some device software that has been written for version 1. Now; version 2 is supposed to be completely backward compatible but it turns out that is not the case.
What I would like to ask is:
It appears that you can have multiple versions of the .net compact framework installed yet the MS installer will not install because it detects the newer version. I am not familiar enough with .net on these devices to know any way around this. Is it possible to retrofit version 1 at all? You advice would be much appreciated.
I would really like to help this guy out.

I guess this is because Microsoft thought they would be compatible. I would try to get another installer for CF1. If there is nothing newer than the one you have, try editing the installer. The cab-Installations are defined by xml files and are quite easy to read and edit. It shouldn't be a problem to remove the check of the newer version.
Tell us if it worked :-D

Ok...
I have the newest installer for .net CF V1 SP3. That's the latest one I can find on the MS site - without going to Version 2. I've unpacked it and I am now sitting looking at a folder full of CAB files.
I guess one of the questions I need to ask is whether it is possible versions of >net CF on the Artemis? If it is, are there any caveats?
And how do I know which CAB file to use?
I should explain that I am new to field of XDA modding so I don't really know all that much about how the OS works. This is a little project that will help a friend out (he is techincally incompetent) and give me a bit of extra knowledge (right now I feel technically incompetent...).

I'd try it that way: run the installer with the ppc disconnected. Then look into the "program files\Microsoft Activesync" folder which cab you can find there. Maybe it's more than one depending on your CPU. Extract the cab and edit the xml file.

CF1 SP3 is built into the ROM of WM5 so installing it again is just wasting your precious storage memory. CF2 SP1 can be installed to your storage card. CF2 is backwards compatible and can run CF1 applications, but since all WM5 devices have CF1 built in when you run a CF1 app it actually runs under CF1. You can force it to run under CF2 by placing a config file in the applications directory.
Read more here:
http://blogs.msdn.com/mikezintel/archive/2005/11/23/496123.aspx
The config file is explained here:
http://blogs.msdn.com/davidklinems/archive/2005/11/09/491113.aspx

@indiekiduk: without having read your links; are you sure about CF1 is installed on the device?
I tried the version checker of the hitchhiker website ( http://www.kasuei.com/hitchhiker/ ) and it says ".NET Compact Framework Unknown (2.0.5238.0)" seems to me like version 2.*.
I have not installed any other CF onto my orbit.
correct me if i'm wrong please.

indiekiduk said:
CF1 SP3 is built into the ROM of WM5 so installing it again is just wasting your precious storage memory. CF2 SP1 can be installed to your storage card. CF2 is backwards compatible and can run CF1 applications, but since all WM5 devices have CF1 built in when you run a CF1 app it actually runs under CF1. You can force it to run under CF2 by placing a config file in the applications directory.
Read more here:
http://blogs.msdn.com/mikezintel/archive/2005/11/23/496123.aspx
The config file is explained here:
http://blogs.msdn.com/davidklinems/archive/2005/11/09/491113.aspx
Click to expand...
Click to collapse
This is simply not true. The Orbit comes with SP2 installed and has never had SP1 installed - not in the ROM on the XDA I've seen.
The Orbit comes pre-installed with CF2 - I have seen this with my own eyes. It is also NOT completely backward compatible. Even the CF .net team admit this - there are always caveats when microsoft say something is "backward compatible".
I don't want to force it to run under SP2 - because it IS running under SP2 already.

Can anyone tell me which CAB file I can use to install another version of .net CF? And if it's even possible to retrofit CF v1 on the Orbit?

You could try changing the value under HKLM\software\microsoft\.NETCompactframework - to try and fool said program to believe you have CF1, CF2 programs may not work but worth a shot.

Related

Java XLet

Hi,
I was wondering if there is a jvm for wm 6 which supports xlets. They are part of the CDC toolkit...
I don't want to have to use midlets as it is quite a big process to convert an existing swing program into a midlet.
Has anyone been able to do this?
Thanks
Edit: I just discovered that esmertec jbed is supposed to support cdc and should support xlet i guess...
but when I run my xlet all I get is a 'File error (???)'
I also know that others have this problem as was posted here:
http://forum.xda-developers.com/showthread.php?t=339579&page=7
But I don't think they were resolved.
Bump:
Has no one ever tried to get xlets working on their phone?
Ok, I found a java manager called CrEme.
It's great it lets you use any standard CDC java app which supports standard swing/awt. So you can instantly port any java app directly to your phone.
XLets/Managed aplications still don't seem to work but given that it runs normal apps, Im not too worried
I don't have any links for it but I've got the files if anyone wants them.
dear user, what does that all have to do with HRDF (Hermes ROM Development Forum)? why don't you ask this kind of questions in GDs (General Discussions)?

Java Development on Touch HD

I've been studying Java with the Open University and would like to put into practice some of my newfound knowledge on the mobile side of things.
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
I have tried searching but to no avail so far so would appreciated your help.
Also, is there a decent Java compiler that operates under WM6. As that would be novel to play around with too! I currently use NetBeans on my pc.
Regards
Gary
Java on a mobile device = J2ME
There are plenty of Java VM for Pocket PC (check this thread). I think JBed (found in most blackstone ROM's including stock ones) is the best. It has severe limits but it is the best you can get on blackstone. For developement you can use your PC with Sun WTK 2.5.2 (it is supported by Netbeans).
There are no decent java compilers that run directly on PocketPC.
As your first app can you create a D-Pad in java to run skymobile????
garyainsworth said:
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
Click to expand...
Click to collapse
Java ME : JBed or JBlend, choose one of them, both work great.
Java SE (Yes Desktop-class Java): MySaifu - http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html
As for the JDK part (I mean the javac compiler and other tools), I do not know such a package yet. However, you can make javac work with MySaifu with a tools.jar file copied from standard JDK (1.3 or older probably).
Hope this helps
Java development with JVM for CDC
Thanks for your help guys.
I've managed to ge set up and have managed to create my first Midlet and run it on my Blackstone via JBed. I've used NetBeans 6.7
However, that is CLDC/MIDP, but when I try and install CDC creations JBed will not install it because a Midlet name is missing. Is this because the stock JBed does not support CDC. I have tried to find out but it is not perfectly clear and I will have to pay for a JVM to test my theory out if nobody can advise!
Thanks for help
Gazza
MOD EDIT
Moved to Themes, Applications and Software forum (?) as not related to rom development
I'd seriously look at JavaFX, sun released a beta of it the other day.
I really like it, it works well on the HD from my limited testing
http://javafx.com/downloads/windows.jsp
One slight flaw with the current version is that it wants to get network address even when try to search for local jar/jad on storage.
but setting it as default file association gets around that one..
JavaFX
Downloading as I write....
Thanks for your advice I appreciate it. As you may know, as a newcomer to development of JME it is so complicated to get started due to all the configurations so any pointers at this stage are very much appreciated.
Thanks
Gaz
OK, I have JavaFX installed on my HD and it works and I particularly like the calculator example app included with it. However, I still cannot get my CDC app to install. It says "Cannot install application because critical information is missing from the application file (.jad). I thought CDC used xml files and not JAD for descriptions. Am I wrong or is something to do with my platform/deployment configuration?
I cant see a jad file in the deploy folder either. Is this an error.
Thanks
Gaz
Nope, you still need the JAD descriptor file.
It's plain text file, just find some on the internet, open it with text editor and alter some of the properties in there, it's really easy.
Don't forget to change the path to your JAR archive - the best way is to put there just simple JAR name and copy the JAD to the same directory as JAR.
Thanks Pepcza,
I'll try that, just a thought though, if you still need a descriptor file (in this case .jad) why does'nt the Netbeans deployment process create it along with everything else? It does when creating CLDC platform apps!
Gaz
JavaFX
I think we should concentrate on this one. Youtube videos are working in bolt browser using Javafx. If only it would be a bit faster, It'll throw Jbed out of the window.

MissingMethodException on PPC2003 C# program

I have been working with VC# 2005 and the WM5.0 and 6.0 SDKs. However, recently I decided to try to run my programs on a PPC2003 device, since nothing in my code should prevent me from doing so..
However, I seem to have run into some problem that might be beyond my understanding of how the different versions of WinCE relate. My programs run on a WiMo 6.1 device with no problems. When I simply tried to run the software built with the 5.0 SDK on a PPC2k3, I got a MissingMethodException for a function that was in a C# dll that was in the project directory. I thought that it may have to do with some fancy new 5.0 functionality so I created a ppc2k3 project, but the problem did not go away. I was able to get rid of it by just including the files from the dll in the main project (which I would prefer not to do). This brought me to an even sillier exception: "Could not load type 'System.Collections.Generic.LinkedList' 1' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=...'"
The device has CF2.0 installed and as far as I know, Linked Lists should be supported without any issues. Does anyone know what I might be doing wrong?
A WinMo 2003 device by default only has .NET CF 1.0 or 1.1 (WM2003SE) installed on it by default. Unless it has the .NET 2.0 framework installed on it, that could be the problem.
To find the version(s) on .NET CF installed run \Windows\CGACUTIL.EXE It may be a hidden file on your device. Depends on the OEM.
Check whether the method you are calling exists in .NET CF 1.1
It may not, exist or have a different overloaded type, check the parameters. If you modify your app to use the methods/properties only available in CF 1.0/1.1, it should work.
Thank you for your reply! I did install CF2 (and I think it gets automatically deployed if it's not installed anyway). The version I get from cgacutil is [2.0.6129.0, 1.0.3111.0].
This does seem to be something other than a compact framework issue though, since I got a similar error while trying to use a function from a dll that I built from source. Are there some build flags or anything that should be set on a PPC2K3 application that are unnecessary on later versions?
Not that I am aware of.
The versions installed on your device are 2.0 and 1.0, the third number is the build version.
You have to use some debug code in your app to get to the bottom of it.
Have a look at:-
http://msdn.microsoft.com/enus/library/system.missingmethodexception.aspx

VB question

Hallo,
I have the question, if VB (not the sdk, only a program) could run on WM 6.5? I know there is a eMbedded runtime, to use VB, but only for the Version WM 3 ... Does anybody know, if VB program run also with these eMbedded runtime and WM 6.5?
Thanks und regards,
Flo
If the program has been written in VB .NET Compact Framework (Visual Studio 2002 onwards), then it should run on your device, without the need for a runtime, as the .NET CF is the 'runtime' for the program. All mobile devices have one version of .NET CF installed in rom on the device. Later versions can be installed. Even if the program was written for an earlier version of .NET CF than that on your device, if the device can JIT compile it successfully against the version installed then it will run. If serious differences exist between the methods used in the program's CF version and the device, then it will report that you will need a later version installing.
The moral of the story here, is keep your app as 'simple' as possible, and it increases the range of devices on which it will run.
A 'runtime' version of VB was used in Embedded Tools Version 3.0 (VB and EVC 3.0), before EVC 4.0 replaced it. It is no longer on Microsoft's website but other copies of it exist on the web if you search for it.
There is no reason why a program written in Embedded Tools 3.0 should not run on WinMo 6.5, though some of the dll 'import' definitions may be getting a bit long in the tooth. Like a lot of previous development environments, it's just been dumped at the side of the road.

Lookin for a free cab maker

ive got wince 3.0 but it goin to expirer and a friend on here gave me wince the portable one, but cant get it to work with my win7 64bit even after changin to run in winxp service pack3 and run as admin. if anybody could help me find one u can pm me thanks..
LiquidXed said:
ive got wince 3.0 but it goin to expirer and a friend on here gave me wince the portable one, but cant get it to work with my win7 64bit even after changin to run in winxp service pack3 and run as admin. if anybody could help me find one u can pm me thanks..
Click to expand...
Click to collapse
Try QuickCab v2.0 free!
I initially also used QuickCab but since it lacked some features (for one the ability to use a custom setup.dll was removed in version 2.0) and IABovine apparently stopped development I searched for alternatives:
Pocket PC Setup Creator - free for non commercial usage
Phone Setup Creator - not as much featured but author seems open to suggestions
Extendir Cabs - a cabarc GUI made for creating cabs for extendir
MSCEInf - excelent cab setup extractor (it preserves the file names and setup structure)
There's however no free cab setup "editor" that I know other than WinCe Cab Manager...
PS: QuickCab version 1.0 is not in the original thread so I attached it bellow.
thanks man, ive got a hex edited version of wince 3.0. does that Pocket pc creator have an expire. ?
No expiration date, nag screens or anything else... You get the complete version (almost since you can't use a custom setup.dll) not just a trial.

Categories

Resources