.NET CF 2.0 slowdowns - Windows Mobile Development and Hacking General

I'd like to have a go at developing something for my spanky new phone (HTC Wizard). So once I was able to drag myself out from behind the sofa from looking at the Win32 API, I took a look at .NET CF, screamed a little and eventually got a simple .NET CF 2.0 C# application to run.
However ever since I installed .NET CF 2.0 the phone has slowed down, sometimes does not completely refresh the today screen when unlocking, and otherwise play up, wanting at lest one soft reset a day to play happily. It goes back to normal if I uninstall .NET CF 2.0. I only have three applications installed (.NET CF 2.0, TCPMP and GPRS Monitor Tool), so it appears that it is .NET that is the cause.
It makes no difference if a .NET application is running or not.
Has anyone else experienced such problems with .NET CF 2.0 (both with this phone, and other devices)? And, more developer orientated can you compile .NET CF 1.0 applications with the .NET 2.0 compilers? I have done a small amount of Googling.
Thanks,
Mike
(Sorry if this is the wrong place to post this kind of question...)

Hi,
Does the Win32 API work with Windows Mobile devices? if it does but in a limited fasion do you have a list of the available API?
Thanks

vbJoe said:
Does the Win32 API work with Windows Mobile devices?
Click to expand...
Click to collapse
Aye.
vbJoe said:
if it does but in a limited fasion do you have a list of the available API?
Click to expand...
Click to collapse
The .NET apis are all in one (with remarks like "not in WM"), I think the same was true of the Win32, it might have also came with eVC.

Ah ha ok fair enough, Where can I locate the listing of API's?
With vs6 I used to use an APIguide application but thats not been updated since the whole .NET boom

http://msdn1.microsoft.com/en-us/default.aspx
good place to start looking

Related

Tools required for programming Pocket PC?

It's been years since I finished college (Passed exams with VB4 / 5) - been using VB6 for quite some time no too, recently bought an XDA2 and would like to develop some software for it to achieve a few tasks of mine - I'm not onboard the .NET boat yet (I am planning an update course at college soon to get me up to speed) - in the interim what tools can be used to develop for the PocketPC platform?
Many thanks in advance!
visual studio .net 2003 you can choose vb smart device application
not sure if it's using .net since i havent don any vb since 94 and dont plan to again
or embedded visual c++ if you can do c++ and pure win32 pocket or MFC
Rudegar said:
visual studio .net 2003 you can choose vb smart device application
not sure if it's using .net since i havent don any vb since 94 and dont plan to again
or embedded visual c++ if you can do c++ and pure win32 pocket or MFC
Click to expand...
Click to collapse
I studied C++ and did quite well with it at college, not used it in the 'real world' though, nor have I for quite some time! I use VB for work so I'd rather stick with that. Looks like I'd best get my derriere into .net sharpish!
Cheers.
You can use embedded VB with the Microsoft Embedded Visual Tools - obtainable here: http://www.microsoft.com/downloads/...48-31ee-4cbe-aac5-0affd5fb27dd&displaylang=en
Applications developed with embedded VB would require runtime libraries to be installed on the device.
Of course, this has been superceded by the .NET Compact Framework model which is being pushed heavily by Microsoft.
Personally, I prefer to use embedded C++ because an awful lot of what I want to do is not supported by the .NET Compact Framework.

Visual Basic Runtime

Hi all,
does anyone know if there is trick to install Microsoft Visual Basic runtime in my Universal (JasJar) ?
Thanks
nicoska
There is no VB Runtime for Windows Mobile. The closest you can do is installing The .NET Compact Framework, but you will not be able to run VB Scripts or VB applications on a Windows Mobile device. At least not now anyway.
ccisn said:
There is no VB Runtime for Windows Mobile. The closest you can do is installing The .NET Compact Framework, but you will not be able to run VB Scripts or VB applications on a Windows Mobile device. At least not now anyway.
Click to expand...
Click to collapse
I've installed this http://www.funambol.com/opensource/downloads.html
Is a SyncML client for PocketPC and when i tap on it ask me to install Visual Basic Runtime.
It's possible ?
thanks
nicoska
Interesting. I went there and noticed it is for PPC 2003. I tried installing it (but didn't let it go through)
It did look like it was going to install some VB Runtime for PPC. (It showed up on the screen)
Check your add/remove programs and see if it's in there. If it is, then it probably doesn't work with WM 2005.
Good luck
ccisn said:
Interesting. I went there and noticed it is for PPC 2003. I tried installing it (but didn't let it go through)
It did look like it was going to install some VB Runtime for PPC. (It showed up on the screen)
Check your add/remove programs and see if it's in there. If it is, then it probably doesn't work with WM 2005.
Good luck
Click to expand...
Click to collapse
Yes, indeed. This should be a eMbedded VB Runtime, which works with WM 2003.
Visual Studio 2005 should be delivered me in the next days, and for all I read by now this will include a VB environment for WM 2005. Possibly this will be compatible to... oh wait! We're talking about Microsoft, aren't we? So, forget this about compatibility... :roll:
Yeah. I tried to create an app in eMbedded VB and it didn't work out of the box on WM 2005. I have used VS2005 and created a couple apps in VB and they work, but I needed to install the MS CF 2.0 and that was it.
I had assumed that WM 2005 was supposed to have CF 2.0, but mine did not. I also have a Qtek 9100, not a 9000. So the Jasjar's and 9000's may have it already.
thanks a lot.
Please let me know when you get the vb runtime for wm5, so then i can check if sync ml works.
bye
nicoska
ccisn said:
Yeah. I tried to create an app in eMbedded VB and it didn't work out of the box on WM 2005. I have used VS2005 and created a couple apps in VB and they work, but I needed to install the MS CF 2.0 and that was it.
I had assumed that WM 2005 was supposed to have CF 2.0, but mine did not. I also have a Qtek 9100, not a 9000. So the Jasjar's and 9000's may have it already.
Click to expand...
Click to collapse
Can you post the app so i can test it ?
bye
nicoska
nicoska said:
Can you post the app so i can test it ?
bye
nicoska
Click to expand...
Click to collapse
which app? the VS2005 one? Or the eMbedded VB one?
I actually don't have the eMbedded VB one anymore.
I'll attach this simple one created in VB off of VS2005. It just powers off or resets the device. (It is not signed)
Also if you are just curious about the CF runtime you can run \Windows\cgautil.exe and it will pop up with all the versions of the Framework. Mine only has 1.0 by default. After installing 2.0 it shows both.
I was using a bunch of VB apps on my jamin (prophet) without any problem, and all of a sudden when I try to open them i get; "there is no application associated etc."
Anyone has any clue about that? Can I install (or re-install) visual basic on wm5?
Thanks all

Countdown Timer

Is there a Countdown Timer application that doesn't use the .NET COmpact Framework?
.NET slows down my desktop, I don't even want to know what it will do to my 8125.
I'm looking for a Countdown app in which I can put in a specific date and it will tell me how many days, hours, minutes seconds I have. A Countdown, pretty much.
nexess said:
Is there a Countdown Timer application that doesn't use the .NET COmpact Framework?
.NET slows down my desktop, I don't even want to know what it will do to my 8125.
I'm looking for a Countdown app in which I can put in a specific date and it will tell me how many days, hours, minutes seconds I have. A Countdown, pretty much.
Click to expand...
Click to collapse
Try this out for size!!! Just take off the .zip and then run!
Nice program, but too bad it needs .NET
Well, .NET is not "slowing down" your computer! .NET is part of your OS since Windows XP, so, without .NET you wouldn't even have a functioning OS. Even Windows Mobile has the NET COMAPCT FRAMEWORK build in since version 5, so, there is no way around it!
You might wanna try out this one - haven't tried it myself, so, I am not sure if it will work properly: http://www.pocketone-soft.com/stopwatch/2003sevga.php
Yeah, maybe your right, but when I run the application, it asks for a newer version of .NET
.NET is not a native part of Windows XP SP2, it is a separate component.
Any software that requires another piece of software to be installed is called bloatware in my book.
The application you posted is a stopwatch, not a countdown timer
nexess said:
Yeah, maybe your right, but when I run the application, it asks for a newer version of .NET
Click to expand...
Click to collapse
Well, looks to me like the programmer of that software did not use the standard COMPACT FRAMEWORK but the latest (either 2.x or a higher BETA) when he compiled the program! Howeever, .NET will not slow you downit is in fact even increasing the speed of a higher OS, such as XP with latest updates and VISTA.
I had to write an article for it in a local pc magazine - I published it later in a programmer forum - you still can read it here: http://www.codingmonkeys.com/index.php?topic=1014.0
You will have to live with the fact that programmers will start more and more with developing .NET application - there is no way around it!
If you really want to find a 'non' .NET application look for older software (PPC 2003) which is out already for a few years. If it is only a countdown timer you're looking for it can't be too hard to find!

Newbie Guide to C++

I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?
ronschaefer said:
I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?
Click to expand...
Click to collapse
WHAT kind of applications you are trying to write?
Do you need to write a device driver for your PDA?
ronschaefer said:
I need help - I want to start writing programs for my Tilt. Looking through the posts it seems the C++ is the way to go. I found a bunch of nice tutorials on the web on how to program in C++ but not now to write a program for a pocket pc.
Specifically I need help with which programs to download.
Im looking for a list like this of exactly what I need to get
1. Microsoft embedded Visual C++ 4.0.
2. Microsoft embedded Visual C++ SP4
3. Microsoft pocket pc 2003 sdk.msi
4. Microsoft Windows CE 5.0 Device Emulator
or what ever
Thanks I tried to figure this out on my own but got frustrated after installing like 7 different programs. Seems like you should only need 1 program but it seems like you need to download a bunch.
Also with the Embedded Visual C++ program I dont see where to enter your code - like open workspace or something?
Click to expand...
Click to collapse
You should be able to do it with visual studio and the emulator, im not 100% sure though, I only know a limited amount of Java.
Most phones support .net/C#/Java, so pick a language
What I want to write
Just some fun stuff =
One idea I had is a generic sound simulator, tie buttons to different sound - .wav files; animal sounds, machine sounds, phasor blasts, drum kit, theme music like - http://www.thinkgeek.com/tshirts/illuminated/a5bf/
I want to have it look nice too with decent graphics.
i suggest to use Visual Studio 2005 or 2008.
It's simplest way to start (and continue) to write programs.
Both native and NET technologies are supported. C++ and C# available.
Both VS versions are coming with integrated Device Emulator with WM5(VS2005) and WM6(VS2008) images for PDA/PDAPhone/SP and remote debugger for real PDA/PDAPhone/SP devices.
If you are using VS2005/2008. Download the latest Windows Mobile 6 SDK (Standard and Pro) for the best Emulation.
Ta
Dave
but c# only works with .net
where c++ works with win32(native) microMFC(Native) and .net
more info can be found
http://forum.xda-developers.com/showthread.php?t=380069&highlight=programming
http://forum.xda-developers.com/showthread.php?t=382995&highlight=programming
http://forum.xda-developers.com/showthread.php?t=226412&highlight=programming
http://forum.xda-developers.com/showthread.php?t=336251&highlight=programming
http://forum.xda-developers.com/showthread.php?t=305926&highlight=programming
http://forum.xda-developers.com/showthread.php?t=302548&highlight=programming
http://forum.xda-developers.com/showthread.php?t=228043&highlight=programming
http://forum.xda-developers.com/showthread.php?t=317913&highlight=programming
http://forum.xda-developers.com/showthread.php?t=237932&highlight=programming
yes, ะก# is for NET only. This language appeared together with NET technology as alternative to Java after breakup with SUN
C# is closer to BASIC than C++. I, personally, don't recommend C#. Ths "strange" language is for lazy people. Almost nothing left of C++ and its ideology.
Visual Studio 2008 Pro trial version
Thanks for you advice - i deleted all that embedded C++ stuff - was way too confusing, must have had like 8 programs installed and still was not working - I like the idea of just 3 things the visual studio and the 2 WM6 SDKs
Im going to try the visual studio 2008 - there is a trial version of it for 90 days
http://msdn.microsoft.com/en-us/vstudio/products/aa700831.aspx
Would i be better off with the 2005 version as Im using Xp not Vista on my main computer. Should I get the Try Visual Studio "Team System" 2008 - Trial Software or just stick with the regular one i downloaded?
I also downloaded the standard and professional WM6 SDKs
http://www.microsoft.com/downloads/...745-88EF-3D48091A390B&displaylang=en#filelist
I used embedded visual tools in the past (3 and 4). Be aware that you cannot use the WM5 SDK with eVC, you must use Visual Studio for that. The latest thing usable with eVC is the WM2003 SDK, as far as I know. Also, the emulator handling in eVC was quite sluggish and buggy. When I switched to VS2005, it was like a deliverance to me. Also, the help system in VS is a blessing. *g*
Though I used Delphi's VCL in the past, I would never freely touch such a thing on restricted hardware such as in PDAs. Hence, .NET, MFC and of course *cough* Java *cough* are out of the question. I'm a pure C++ writer. The progs are nicely small and fast. And there are always alternatives to the things I can't use because of that: for instance instead of MFC CStrings I got acquainted with STL library's strings. There's also ATL which supposedly can be used instead of MFC for GUI programming, but when I looked for it some years back I found only very little information about that.
Happy coding.
Is it true that you can only develop WinMo C++ in VS Pro?
I read on the Microsoft marketplace that the standard edition dosnt support mobiles..
are there any alternatives (C++ only please..)
yes they only support through pro... but you can get it for free through dreamspark if you are a student
joel2009 said:
yes they only support through pro... but you can get it for free through dreamspark if you are a student
Click to expand...
Click to collapse
damn, I am a student but my uni isnt listed
I asked one of the admins and they are looking into getting on the list
But it might be too late coz its my last year..
Mic159 said:
damn, I am a student but my uni isnt listed
I asked one of the admins and they are looking into getting on the list
But it might be too late coz its my last year..
Click to expand...
Click to collapse
Good news. My uni isn't listed either. It is a simple matter of verifying your student status on journey ed. I'm glad I could help with this because it turns out that I could get all the dreamspark software through my school's MSDNAA program anyways.

.net

has anyone tried .net 3.5 ob their Vogue ?
anyone state if it works ?
Yes, I have it. Yes, it works for software which requires it. However, it also causes other software to stop working. An example is E-Sword, mentioned in the thread asking about Bible software. If you have a program you want to use which states it requires 3.5, you can only hope it does not have a conflict with your other software. At this point I would not load it if you don't have to.
.net 3.5 actually speeds up most day to day tasks. you can have both 3.5 and 2.0 installed so there should be no problems....i have only 3.5 installed on mine and have had no problems.
I also have both 2 and 3.5 installed on my Vogue, and while there shouldn't be any problems, there are. As I said, you can install 3.5, and then if you do have a conflict, make the decision as to whether 3.5 or the program that no longer works is more important to you.
do you know which one is set as your default?
1loudsvt said:
do you know which one is set as your default?
Click to expand...
Click to collapse
same question for me ?
You can find the current .NET setting in the registry, or you can use the .NET Config from modaco.

Categories

Resources