Hi ALL, I tried to look for it in the forum but the only part discussing this is in VC with the "CreateFile" call.

I have a pocket PC with Windows Mobile 2003 installed, and Visual Studio .NET 2003.

I am trying to communicate with the GPS (which comes build in in the handled pc on com2). I understand what I need to read and parse from the GPS com port in order to build simple GPS application, BUT can't tell how to read from the serial port.

Can anyone provide me a sample code which uses to open serial port, read from it (maybe using a timer?) and close it?