3,245
社区成员
发帖
与我相关
我的任务
分享
IApplicationPtr pApp(__uuidof(Application));
pApp->put_Visible(VARIANT_FALSE);
IDocumentsPtr Docs;
pApp->get_Documents(&Docs);
IPlotDocumentPtr Doc;
Docs->Add(srfDocPlot,/*(IDispatch**)*/&Doc);
IShapesPtr pshapes;
Doc->get_Shapes(&pshapes);
IMapFramePtr pMF;
CFileDialog dlg(TRUE, NULL, "*.grd" , OFN_HIDEREADONLY |OFN_OVERWRITEPROMPT,"离散点文件 *.grd");
if(dlg.DoModal()==IDOK)
{
CString strPatch=dlg.GetPathName();
pshapes->AddContourMap(_bstr_t(strPatch),&pMF);
}