标签: c++ geolocation
我正在编写一个应该在Windows 7及更高版本上运行的c ++应用程序。
由于它应该适用于Windows 7,因此我无法使用Windows::Devices::Geolocation。
我发现Windows 7 +支持根据MSDN的GeoCoordinateWatcher。
问题是我需要代码在CPP中,看起来这个类只是一个.net类。
如何使用CPP获取位置?
答案 0 :(得分:0)
看看http://msdn.microsoft.com/en-us/library/windows/desktop/dd317747(v=vs.85).aspx 这在C ++中有一个演练示例