gps
所属分类:.net编程
开发工具:Visual C++
文件大小:32KB
下载次数:89
上传日期:2008-05-30 10:47:55
上 传 者:
ejb3507
说明: .Net VC++开发的手机GPS信息接收程序
(. Net VC++ Development of mobile phones to receive GPS information procedures)
文件列表:
gps\GPS.sln (7000, 2007-03-30)
gps\MobileGPSDemo\DisplayGPSData.cpp (5519, 2007-03-30)
gps\MobileGPSDemo\DisplayGPSData.h (1319, 2007-03-30)
gps\MobileGPSDemo\GPSSink.cpp (2595, 2007-03-30)
gps\MobileGPSDemo\GPSSink.h (1273, 2007-03-30)
gps\MobileGPSDemo\MobileGPSDemo.vcproj (9045, 2007-03-30)
gps\MobileGPSDemo\stdafx.cpp (840, 2007-03-30)
gps\MobileGPSDemo\stdafx.h (2187, 2007-03-30)
gps\MobileGPSLib\GPSController.cpp (11516, 2007-03-30)
gps\MobileGPSLib\GPSController.h (2677, 2007-03-30)
gps\MobileGPSLib\MobileGPSLib.vcproj (9055, 2007-03-30)
gps\MobileGPSLib\stdafx.cpp (839, 2007-03-30)
gps\MobileGPSLib\stdafx.h (2183, 2007-03-30)
gps\MobileGPSUI\MobileGPS.ico (23558, 2007-03-30)
gps\MobileGPSUI\MobileGPSppc.rc (4779, 2007-03-30)
gps\MobileGPSUI\MobileGPSppc.rc2 (1626, 2007-03-30)
gps\MobileGPSUI\MobileGPSsp.rc (2964, 2007-03-30)
gps\MobileGPSUI\MobileGPSsp.rc2 (1529, 2007-03-30)
gps\MobileGPSUI\MobileGPSUI.cpp (10192, 2007-03-30)
gps\MobileGPSUI\MobileGPSUI.h (818, 2007-03-30)
gps\MobileGPSUI\MobileGPSUI.vcproj (11585, 2007-03-30)
gps\MobileGPSUI\resourceppc.h (1492, 2007-03-30)
gps\MobileGPSUI\resourcesp.h (1243, 2007-03-30)
gps\MobileGPSUI\stdafx.cpp (836, 2007-03-30)
gps\MobileGPSUI\stdafx.h (2343, 2007-03-30)
gps\MobileGPSDemo (0, 2008-02-22)
gps\MobileGPSLib (0, 2008-02-22)
gps\MobileGPSUI (0, 2008-02-22)
gps (0, 2008-02-22)
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
Code Sample Name: MobileGPS
Feature Area: The GPS Intermediate driver
Description:
This sample demonstrates how one, can use native GPS APIs, to asynchronously
retrieve both the location data and the GPS intermediate driver’s state.
Code organization
The code is organized in 3 projects that work together and integrate with one solution.
Project1 : MobileGPSUI
This project was generated by the VS wizard to implement the device UI. Minor
changes have been made to this project to use MobileGPSDemo
Project2 : MobileGPSLib
This lib file implements the core logic required to communicate with the GPS
intermediate driver. In addition, it provides an abstraction to ease the process
of asynchronously handling the GPS Intermeidate events
Project3 : MobileGPSDemo
This project uses MobileGPSLib to communicate with the GPS Intermediate driver.
Relevant APIs:
GPS APIs:
- GPSOpenDevice
- GPSGetPosition
- GPSCloseDevice
- GPSGetDeviceState
Usage:
Load the project from Visual Studio 2005, Ensure that the Intermediate Driver is
set to fake the GPS hardware. Then, compile and run the project.
Assumptions:
Either the retail device is GPS enabled or the device emulator has been setup to fake
the GPS hardware. Check the GPS Intermediate Driver section on MSDN for further
information.
Requirements:
Visual Studio 2005,
Windows Mobile 6 Professional SDK
Windows Mobile 6 Standard SDK
Activesync 4.5.
** For more information about this code sample,
please see the Windows Mobile SDK help system. **
近期下载者:
相关文件:
收藏者: