请教一个问题:
MFC对话框中显示咱们天地图的示例,提示错误: 系统找不到指定的路径,显示如下:
Html代码如下:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="天地图"/>
<!--<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> -->
<title>天地图-地图API-范例-经纬度直投地图</title>
<script type="text/javascript" src="http://api.tianditu.com/api?v=4.0"></script>
<script>
var map;
var zoom = 12;
function onLoad() {
map = new T.Map('mapDiv', {
projection: 'EPSG:4326'
});
map.centerAndZoom(new T.LngLat(116.40769, 39.89945), zoom);
}
</script>
</head>
<body onLoad="onLoad()">
<div id="mapDiv" style="position:absolute;width:600px; height:500px"></div>
<div style="position:absolute;left:620px;">
<ul>
<li>本示例演示如何显示经纬度直投地图。</li>
<p><a href="http://lbs.tianditu.com/api-new/html5/examples.html">返回所有范例列表</a></p>
</ul>
</div>
</body>
</html>
VS2010 c++调用代码如下:
CString strUrl;
strUrl.Format(L"res://%s/%d", wszPath, IDR_HTML_TIANDITU);
Navigate2(strUrl, NULL, NULL);
之前一直这样用,用了一个多月,突然不行了,就提示这个错误,但是我用360浏览器直接打开上面的html文件正常显示,就是执行MFC时就提示错误,请教大家是什么原因导致?