Page 1 of 2

pocket pc programming!

Posted: Wed Jan 05, 2005 8:57 pm
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?

Posted: Wed Jan 05, 2005 11:42 pm
by dracflamloc

Re: pocket pc programming!

Posted: Thu Jan 06, 2005 5:54 am
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. :(

Posted: Thu Jan 06, 2005 3:01 pm
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?

Posted: Thu Jan 06, 2005 3:17 pm
by Bonne_den_kule
Embedded Visual Tools 3.0 also include a version of Visual Basic (VB).

Posted: Thu Jan 06, 2005 3:20 pm
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?

Posted: Thu Jan 06, 2005 3:27 pm
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.

Posted: Thu Jan 06, 2005 3:30 pm
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.

Posted: Thu Jan 06, 2005 8:48 pm
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.

Posted: Thu Jan 06, 2005 9:24 pm
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.

Posted: Fri Jan 07, 2005 1:09 am
by dracflamloc
Time to look up a doc on GPS ;)

Posted: Fri Jan 07, 2005 6:02 am
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.

Posted: Fri Jan 07, 2005 12:23 pm
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

Posted: Fri Jan 07, 2005 3:34 pm
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.

Posted: Fri Jan 07, 2005 5:42 pm
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