views:

15

answers:

1

Hi guys,

I am writing a windows mobile application based on GPS technology. everything is ready but I need the function which is used to retrieve GPS location coordinates (latitude and longitude).

I declared latitude and longitude, but now I need the function of GPS to put it inside a button I created, get longitude and latitude values and save them.

Environement: Windows Mobile 6.5 Framework 6.5, Professional

Thanks

A: 

The GPS Intermediate Driver provides a very simple-to-use API for providing shared access to GPS data. You can use GPSGetPosition() for you purpose. There is an example how to use it in this article, Using the GPS Intermediate Driver from Native Code.

See Also:

Vantomex