我遵循本教程
在我的Windows窗体c#应用程序中嵌入谷歌。
这是我用于在Google地球应用中搜索的代码:
try
{
SearchControllerGE srch = new SearchControllerGE();
srch.Search(textBox7.Text); //textBox7.Text = "India"
FeatureCollectionGE fcge = srch.GetResults();
}
catch(Exception eXZ)
{
MessageBox.Show(eXZ.Message);
}
srch.Search
抛出异常是异常消息:
错误HRESULT E_FAIL已从调用COM组件返回
如果有任何人有关于通过COM API将c#应用程序与google earth链接的以前经验,请不要使用任何Javascript API帮助我。
答案 0 :(得分:0)
通过COM API将c#应用程序与谷歌地球相关联,无需任何Javascript API。