pocket pc programming!

For everything that's not in any way related to PureBasic. General chat etc...
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

pocket pc programming!

Post by thefool »

Hi!

my father got an pocket pc with GPS. its running windows mobile edition.
He asked if i could program a small program for it that would put the coordinates of where one is atm to a file on it... I downloaded pelles C for playing. All i know is that the gps in os COM 2 on the pocket pc.

But now the big question..: How can i program a program that reads from COM port in C?
well another thing would be if there is any thing like winAPI on the pocket mobile so i can use that in pelles C?
i dont know much c++ programming, but a bit. but im not sure, that that is good enough to program in C

and last question: Is it possible to program an exe to windows mobile edition in purebasic?
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Re: pocket pc programming!

Post by RJP Computing »

thefool wrote: But now the big question..: How can i program a program that reads from COM port in C?
Here is a great website to checkout.
http://www.wince.org.uk/vc/intermediate/serialrw.htm
thefool wrote:well another thing would be if there is any thing like winAPI on the pocket mobile so i can use that in pelles C?
Most of the Windows API is there. You can download the WindowsCE SDK given in the link in the post above, but it really isn't needed. PellesC is really good at writing the software. There is a drawback though, you can't create an exe that will run on the Windows CE emulator. I really don't find this to bad though. I am just starting to write a program that talks to the COM port on the PocketPC so I am learning a bunch.
thefool wrote:and last question: Is it possible to program an exe to windows mobile edition in purebasic?
No not at this time. :(
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

great thanks for the help :D

well is there any other programming language than c nd' c++ to write for Windows Mobile edition?
im not really good at using c or c++. Any ideas (it needs to have the ability to read a comport)

but ill look at the webpage about serial comm, and also download the microsoft c++ thingy. i already have pelles c but i know even less C than c++ ;)

edit: will the Embedded visual tools [that also have eMbedded Visual Basic 3.0] work on a new Pocket Pc with Windows Mobile edition?
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Embedded Visual Tools 3.0 also include a version of Visual Basic (VB).
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

thanks, but does it work on the newer Windows Mobile?
[i ask since i noticed that the c++ version was 4.0-]
h. I am just starting to write a program that talks to the COM port on the PocketPC
hey will you send me an example of it? so i can try to take a look at it..?
is it written with Pelles C or ms c++ thingY?
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

thefool wrote:hey will you send me an example of it? so i can try to take a look at it..?
Sure when I get something working. :wink:
thefool wrote:is it written with Pelles C or ms c++ thingY?
It will be written in PellesC. I really prefer PellesC over Embedded Visual C++. It is just so much cleaner and fast.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

ok. its just that i think C is harder than C++...
can you make a simple example of a small program that writes "Hello world" ? not with a window or anything. to a pocket device of course.
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

Just a plain example? Nothing to do with serial communication.

If that is all you are looking for than I can do that very quickly.

By the way WindowsCE always has a window, there really isn't a console in Windows CE.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

hi!
i have downloaded the eMbedded visual basic and it works nicely.
It comes with a nice Comport Component and i have opened the port.
Its just that the gps returns a lot of weird data.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Time to look up a doc on GPS ;)
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

thefool wrote:It comes with a nice Comport Component and i have opened the port.
Where did you find that bugger! 8O Can you tell me where to find it?

I need that bad. That sounds great.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

RJP Computing wrote:
thefool wrote:It comes with a nice Comport Component and i have opened the port.
Where did you find that bugger! 8O Can you tell me where to find it?

I need that bad. That sounds great.
Ditto. :)

Edit:

http://www.microsoft.com/downloads/deta ... laylang=en
@}--`--,-- A rose by any other name ..
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

thats the one.
It can be a bit difficult to learn how to distribute your programs but it really arent that hard. Also comes with an emulator.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Alternative: Waba (or SuperWaba) - I used it to rejuvenate a HP620LX (wince 2.1) that had sat on the shelf for a couple of years :P
Post Reply