PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

WinCE Programming

Hello all,

Im interested in programming for WinCE. I would also like to get involved with it while writing my final year project.

I had a look at J2ME and PJava, thinking that it should be quite popular, but the Sun site was poorly documented and the forum was dead really.

Is MVT & MFC the most common approach for WinCE Programming?

Any feedback much appreciated.
depends on what your writing. Havent used MFC on games though... no real need for it with GAPI.
MFC is certainly the most often used OOP abstraction for Windows programming for C++. It has been well supported with Windows CE since day one. As has been said, for game development there is not a whole lot of use for MFC. Basically you create a main window and process keyboard and mouse events, so there's not a whole lot done as far as Windows goes either way. For GUI intensive apps like DEXplor I would certainly recommend MFC.

Dan East
I appreciate your comments.

But i didnt see any input on Java.
Is my assumption correct?
:\

Didnt know Anonymous posts were allowed.
Sorry about that. It was me.
The best thing to do with Java programming on the PocketPC is "forget it", IMHO. I don't think that there's a widely available JavaVM for the PocketPC (happy to be proved wrong though). Things should take off when the chips with the Java capability come along (like ARM's Jazelle technology).
Thanks for ur input concerning the VMs!

Anyone else please?

Im considering writing an application that will connect to a remote dbase to retrieve some data, and im thinking that JAVA will be the easier and most effient way of doing it
JAVA will be the easier and most effient way of doing it


Java. Efficient. Ummm... no comment! ;)

Personally I dislike the JDBC stuff (it always seems too flakey). It really depends on what you're doing; if you just want a light front-end to a database then Visual Basic is probably the way I'd go.

We're using .NET on the PC here at work; to my horror Visual Basic has grown up quite a lot lately and I find myself liking it a bit :o For anything intensive I'd use VC++ but for a front-end VB is nice.

Cheers,

Ref.
:\
and i really dont want to go back to VB...

Ive been programming in JAVA for the last year, and i would like to continue on that.

I dont like changing from one language to another, especially since im a beginner.
:\

...
However if JAVA does prove limited, i guess i have no other option. Although, as i said, its not going to be a heavy application.
When did Java become such a widely used language? Last time I checked it was only used for those rippling water reflection images on webpages :P
angedelamort · 22 Oct 2002, 15:19 UTC
The only thing I can say about Java is it's a good learning language. It's great also for servlet or applet. But definitely not for games. You should try to learn C++. It's similar to Java in syntax. But you will have to deal with 3\/!1 pointers :P
But if you want an easy language for winCE... evb should almost ok for almost anything you want to do.
When did Java become such a widely used language?


It didn't. In industry I know a lot of firms looked at it quite a lot, then one or many of these happened:

  • The cost was too high in this market

  • Java was too flakey, slow, or simply the wrong language for the job

  • The "Java" programmers were incompetant

  • The "portable" Java code was locked to one development IDE / proprietary codebase

  • The GUI is still a real bitch to program

  • The JDBC drivers were flakey


I concur with angeldelamort - it's a good language for learning OO, and reasonable for JSPs, Servlets, etc... (things like PHP are generally far more performant, if "harder" to do).

We looked at it here for a while, but it just doesn't lend itself to the kind of bulk processing we do (we load and crunch tens of millions of records per day - only a serious Java machine will cope with that). My biggest gripe with it is the interface. Load an Oracle application, for example and the GUI performance is crappy, scrollbars don't work properly, the mouse wheel doesn't function, and it looks like crap (IMHO). And that's using the JVM it wants to use, on a powerful machine.

Java's always seemed to be one of those "nice idea"s that doesn't seem to quite come off well. Time will tell if it survives (though actually MS have moved towards a virtual-machine interpreted intermediary language with .NET).

(Oh yeah, and it doesn't support multiple inheritance, which nobody else seems to care abut, but I do - interfaces don't cut it for the stuff I get up to in C++).

Cheers,

Ref.
Where does C# fit into all of that? It's a "web based" language, right, kind of like PHP, Perl, Java, ASP ?
Well, so far as I understand it, all of the "managed" languages in .NET (i.e. everything except the "unmanaged" C++, IIRC) are compiled into an intermediary language and thrown into an interpreter (or compiled natively - I can't remember which - it might even be both depending on configuration). The "managed" stuff uses garbage collection, just like Java.

That means that because C#, Managed C++, VB, ASP can all be expressed as the intermediary language, they can all fit together easily; I can write one object in C++, one in VB, one in ASP, and use one from the other with the objects' defined interfaces without even knowing what language they were written in. Unmanaged C++ can be wrapped and used, as a COM+ object, if memory serves.

It should mean that we (talking about my day job here) can create the back end as either managed or unmanaged C++ (it'll depend on how desperate we are for speed and how well the managed stuff performs), knock up a front-end in VB and link the two together almost seamlessly.

I'll tell you if it works out to be as easy as that in a few months ;) I've only been playing with .NET fro a week or so, but I quite like it already (though I've been doing VB, and the "managed C++" is a bit of a culture shock from vanilla C++ I hear).

Cheers,

Ref.
angedelamort, im currently on my final year at the university.

During the 1st and the 2nd year, i did learn C++ as well as VB as the assembly language for RISC architecture.

Since im on my final year, im thinking of getting involved with WinCE programming while doing my Project.

Last year while doing my placement, i got involved with JAVA and XML, coding servlets indeed, using JDBC etc. plus this year we do JAVA at the Uni instead of C++.

That is the reason i would like to get involved with JAVA while coding for WinCE.

Dont u think i can get away with it, since its going to be just an app which will connect to a remote database and retrieve some data? Yes, there will be a GUI but not anything great. Just some buttons and some text fields maybe. I guess JDBC can handle that as well.
angedelamort · 22 Oct 2002, 20:56 UTC
I hope those links will help you:

sun JVM:
http://java.sun.com/products/personaljava/index.html

IBM:
[url]http://www-3.ibm.com/software/pervasive/products/wsdd/
[/url]

This is all I can do for you at the moment... I never experiement java programming on winCe device.
angedelamort, thanx for the links.

However, I do know them already. As i said on my first post Sun's site is poorly designed IMHO and the forum is nearly dead.

It seems like Sun doesnt really care about JAVA in WinCE. :\
Have you considered embedded VC++ or VB? You lose the 'portability' that comes with using virtual machines, but you do get to use C++ or vb. Java is OK, but only for web-based applications, IMHO. If your target platform is only WinCE, then you should stick with the microsoft embedded tools.

Thank you.