使用Google Earth批量打开多份KML文件
发布时间
阅读量:
阅读量
- 背景
利用ShellExecute函数在程序运行过程中调用GoogleEarth以实现地理位置点的展示
- 示例代码
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
wstring par1 = wstring(L"C:\ Learn_src\ Qt_Work_Space\ build-testOpenGooogleEarth-Desktop_Qt_5_6_2_MinGW_32bit-Debug\ gps_1048.txt(Pre).kml");
wstring par2 = wstring(L"C:\ Learn_src\ Qt_Work_Space\ build-testOpenGooogleEarth-Desktop_Qt_5_6_2_MinGW_32bit-Debug\ gps_1045.txt(Post).kml");
wstring par = par1 + wstring(L" ") + par2;
HINSTANCE ret = ShellExecute(NULL, L"op
全部评论 (0)
还没有任何评论哟~
