VB question - Windows Mobile Software Development

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.

Related

anyone have eMbedded visual basic software,please

i need the software to run some program if anyone can send that or any links to download thanks
Hi,
The SDK for Pocket PC is actually available for free at Microsoft!
You just have to search a little for it: use "Pocket PC SDK 2002" as keywords at www.microsoft.com, or try this direct link:
http://www.microsoft.com/downloads/...4a-bd94-4167-b817-2b2e548b2e92&DisplayLang=en
The SDK for Pocket PC 2003 only includes VC++ 4.0, but the SDK for Pocket PC 2002 contains both VCC++ 3.0 and Visual Basic CE 3.0.
For VB Apps to run, you need to install the VBRUN-Runtime library on the PDA.
Be aware that embedded VB has some severe drawbacks, compared to VB6:
- you don't have the DoEvent command, so no "multitasking"
- you don't have VAR() and VAL()
- you don't have many of the controls
- it is VERY slow
More info's about it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbceide/htm/evbstart.asp
Cheers,
vma
VBRuntime.cab
VBRuntime.cab
Note that it is better to write your apps in Visual C++ rather than VB, as VB will not be supported on future devices...
eMbedded Visual Basic can run on WM 2003, just use the following link to download the runtime library from the following link:
http://msdn.microsoft.com/mobility/windowsmobile/downloads/evb_eula.aspx
This will allow any applications written using eVB 3 to run on your device!

>net compact framework compatibility

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.

WM6 Professional SDK Installation problem

Hi,
I'm thinking of writing some games for the touch hd, but when i try to install the WM6 SDK, it says that my Compact Framework is not installed (it says v2, sp1), although I already have the v3.5 install (im using windows 7 beta btw)
also, if i don't have visual studio 2008, is there any other IDE that i can use to develop this (since WM6 won't allow me to install unless i have visual studio) (I already know about SharpDevelop but its not that good for me).
Thanks,

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

Where to download Windows CE .net 4.2?

I need to write an app to run on Windows CE .net 4.2. I would like to get platform builder for Windows CE .net 4.2, but it doesn't seem to be available on the microsoft site. Can someone help me find it?
It is not the .net that was 4.2, it was the version of CE. This appeared as WM 2003 and WM 2003 SE. The .NET compact framework for the machines was 1.0 or 1.1.
To test the app in an emulator use the standalone emulator. Now at version 3.0
http://www.microsoft.com/downloads/...AF-12E3-4B2F-A394-356E2C2FB114&displaylang=en
The WM 2003 SE images for it are here
http://www.microsoft.com/downloads/...b5-f2a2-47d7-a41d-825fd68ebb6c&displaylang=en
To write .net 1.0 and 1.1 WM apps you will need VS2003 PRO.
VS 2005 and VS 2008 can be forced to create .net 1.0/1.1 executable images but it's a total pain in the ...., you have to hack the build files to get it to work.
For C++ Win32, AFC or MFC you can use the free version of EVC 4.0
http://www.microsoft.com/downloads/...3D-50D1-41B2-A107-FA75AE960856&displaylang=en
Dont forget to apply SP4 to it after install. (Same page, use the link at the bottom)
Thank you very much for the help!
How about modifying the BSP or kernel, which version of tool would you use for that?
For that you will require the CE 4.2 Platform Builder package. Microsoft pull superceded versions off their site, the current version is for CE 6.0
The evaluation version works fully for six months then you have to licence it.
Search in Google for "CE Platform Builder 4.2". Some non Microsoft sites may have a copy of it, but some of these sites could also be of a rather dubious nature. i.e warez peer-to peer file sharing etc.
The documentation for it can be found here
http://msdn.microsoft.com/en-us/library/bb851528(v=MSDN.10).aspx
actually that's what the guy asked for in the first post

Categories

Resources