+ -
当前位置:首页 → 问答吧 → System.Runtime.InteropServices.COMException

System.Runtime.InteropServices.COMException

时间:2011-12-13

来源:互联网

在做Arcgis engine二次开发时利用绝对路径添加数据时:
 private void shapfile路径ToolStripMenuItem_Click(object sender, EventArgs e)
  {
  string Path = Application.StartupPath + "\\data";
  axMapControl1.AddShapeFile(Path,"DL");
  }
提示该路径无效,出现了System.Runtime.InteropServices.COMException 异常,
为什么啊??!,求高手指点!谢谢

作者: hwy1327607409   发布时间: 2011-12-13

MessageBox.Show(Path )
看是什么啊

作者: net_lover   发布时间: 2011-12-13

羡慕楼上的勋章。。

作者: hxlaccp168   发布时间: 2011-12-13