Click here to Skip to main content
15,886,199 members
Articles / Mobile Apps / Windows Mobile

GPS and Web Service using C++ ATL/WTL (Windows Mobile 6, Standard)

Rate me:
Please Sign up or sign in to vote.
4.93/5 (27 votes)
18 Jan 2008CPOL7 min read 104.9K   1.4K   81  
This article explains how to use the GPS API and Web Service on a SmartPhone to show demographics information for the current location.
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#pragma once

// Change this value to use different versions
#define WINVER 0x0420
#define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA
#include <atlbase.h>

using namespace ATL;

#define _WTL_USE_CSTRING
#include <atlapp.h>

extern CAppModule _Module;

#include <atlhost.h>
#include <atlctl.h>

#include <tpcshell.h>
#include <aygshell.h>
#pragma comment(lib, "aygshell.lib")

#include <atlframe.h>
#include <atlctrls.h>
#include <atlmisc.h>
#define _WTL_CE_NO_ZOOMSCROLL
#include <atlwince.h>

#ifdef lstrlenW 
#undef lstrlenW
#endif

#include "WebService.h"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer CDYNE Corporation
United States United States
Developer, Maker and Tinkerer

Comments and Discussions