iOS程序安装格式

版权声明:本文为博主原创文章,如果转载,请注明转载地址和作者 https://blog.csdn.net/u013125233/article/details/50927039

iOS程序安装格式,一图说明


【http://mobile.51cto.com/iphone-280630_all.htm】

阅读更多
换一批

程序安装

05-18

我的程序安装以后登录 本来应该显示的是地图 现在报错啦rnrnrnrnSystem.Runtime.InteropServices.ComException (0x80004005):对COM组件的调用返回了错误的HRESULT E_FAILrnrn在ESRI.ArcGIS.Display.ServerStyleGalleryClass.AddFile(String path)rnrn在WZGIS.MainGIS.MainGIS.LoadSymbolData() 位置D:\虚拟幢gis功能有待完善\虚拟幢gis功能有待完善\WZGID\WZGIS.MainGIS\MainGIS.cs:行号762rnrn在WZGIS.MainGIS.MainGIS.LoadSDEData() 位置D:\虚拟幢gis功能有待完善\虚拟幢gis功能有待完善\WZGIS\WZGIS.MainGIS\MainGIS.cs:行号787rnrn在WZGIS.MainGIS.MainGIS.MainGIS_Load(Object sender,EventArgs e)位置D:\虚拟幢gis功能有待完善\虚拟幢gis功能有待完善rnrn\WZGIS\WZGIS\WZGIS.mAINgIS\MainGIS.cs:行号 159rnrnrn762的代码 (761)string sPath = System.Windows.Forms.Application.StartupPath + "\\rs\\emap6.ServerStyle";rn (762)pStyleStorage.AddFile(sPath);rnrn787的代码 public void LoadSymbolData()rn rn // 点符号rn OracleCommand cmd = new OracleCommand();rn cmd.Connection = CGlobal.m_ConnMap;rnrn cmd.CommandText = "Select SYMBOLID,TEXT,SDESC,CODE,XPOS,YPOS,STYPE,CINDEX From T_SYMBOLINDEX";rn OracleDataReader dr = cmd.ExecuteReader();rn while (dr.Read())rn rn CGlobal.m_Symbols.AddSymbol(rn CCommon.DBNullStr(dr[1]), CCommon.DBNullStr(dr[2]), CCommon.DBNullStr(dr[3]),rn CCommon.DBNullDec(dr[4]), CCommon.DBNullDec(dr[5]), CCommon.DBNullDec(dr[6]), CCommon.DBNullDec(dr[7]));rn rn dr.Close(); rnrn // 线符号rn //rn ServerStyleGalleryClass pStyleGallery = new ServerStyleGalleryClass();rn IStyleGalleryStorage pStyleStorage = (IStyleGalleryStorage)pStyleGallery;rnrn //string sPath = Application.StartupPath + "\\rs\\dd.ServerStyle";rn //string sPath = Application.StartupPath + "\\rs\\ESRI.ServerStyle";rn string sPath = System.Windows.Forms.Application.StartupPath + "\\rs\\emap6.ServerStyle";rn pStyleStorage.AddFile(sPath);rnrn IStyleGalleryItem pStyleItem;rnrn IEnumStyleGalleryItem pEnumStyle;rnrn tryrn rn pEnumStyle = pStyleGallery.get_Items("Line Symbols", sPath, "");rn pEnumStyle.Reset();rn pStyleItem = pEnumStyle.Next();rnrn while (pStyleItem != null)rn rn CGlobal.m_Symbols.SetSymbol(pStyleItem.Name, pStyleItem.Item);rn pStyleItem = pEnumStyle.Next();rn rn rn catch (System.Runtime.InteropServices.COMException comEx)rn rn Console.WriteLine(comEx.Message);rn rn rnrnrn159代码 public void LoadSDEData() //加载已连接的数据库,加载SDE数据rn rn LoadSymbolData();rnrn if (m_pFeatws == null) return;rnrn OracleCommand cmd = new OracleCommand();rn cmd.Connection = CGlobal.m_ConnMap;rnrn cmd.CommandText = "Select ID,NAME,VISIBLE,MINSCALE,MAXSCALE,ISANNO," +rn "FILLCOLOR,LINECOLOR,LABELSIZE,LABELCOLOR,LABELVISIBLE,CLASSNAME,BIGCLASSNAME," +rn "SYMBOLSIZE,SYMBOLCOLOR,SYMBOLSTYLE,FILLSTYLE,LABELFONTNAME,LABELFIELD,ENABLESELECT," +rn "TOPICNAME,LINEWIDTH From T_LAYERCTRL where virtualbuildinglayer =1 Order By ID";rn OracleDataReader dr = cmd.ExecuteReader();rn string sDBName = CGlobal.GetValue("MapDBName");rn while (dr.Read())rn rn WZGIS.MainGIS.CGlobal.CLayer lay = new WZGIS.MainGIS.CGlobal.CLayer();rnrn lay.dcID = CCommon.DBNullDec(dr["ID"]);rn lay.sTableName = CCommon.DBNullStr(dr["NAME"]);rn if (sDBName != "")rn lay.sTable = sDBName + "." + lay.sTableName;rn elsern lay.sTable = lay.sTableName;rnrn lay.Visible = (CCommon.DBNullDec(dr["VISIBLE"]) != 0);rn lay.MinScale = (double)CCommon.DBNullDec(dr["MINSCALE"]);rn lay.MaxScale = (double)CCommon.DBNullDec(dr["MAXSCALE"]);rn lay.bAnnotation = (CCommon.DBNullDec(dr["ISANNO"]) != 0);rn // lay.bRaster = (CCommon.DBNullDec(dr["ISRASTER"]) != 0);rnrn if (!dr.IsDBNull(6)) lay.cFill = (int)dr.GetDecimal(6);rn if (!dr.IsDBNull(7)) lay.cLine = (int)dr.GetDecimal(7);rn if (!dr.IsDBNull(8)) lay.dcLabelSize = (int)dr.GetDecimal(8);rn if (!dr.IsDBNull(9)) lay.nLabelColor = (int)dr.GetDecimal(9);rnrn if (!dr.IsDBNull(10)) lay.bLabelVisible = (dr.GetDecimal(10) != 0);rnrn if (!dr.IsDBNull(11))rn lay.sName = dr.GetString(11);rn elsern lay.sName = lay.sTable;rnrn if (!dr.IsDBNull(12))rn lay.sBigName = dr.GetString(12);rn elsern lay.sBigName = lay.sName;rnrn if (!dr.IsDBNull(13)) lay.dcSymbolSize = dr.GetDecimal(13);rn if (!dr.IsDBNull(14)) lay.nSymbolColor = (int)dr.GetDecimal(14);rnrn if (!dr.IsDBNull(15)) lay.nSymbolStyle = (int)dr.GetDecimal(15);rn if (!dr.IsDBNull(16)) lay.nFillStyle = (int)dr.GetDecimal(16);rnrn if (!dr.IsDBNull(17)) lay.sLabelFontName = dr.GetString(17);rn if (!dr.IsDBNull(18)) lay.sLabelField = dr.GetString(18);rnrn if (!dr.IsDBNull(19)) lay.bEnableSelect = (dr.GetDecimal(19) != 0);rnrn if (!dr.IsDBNull(20)) lay.sTopic = dr.GetString(20);rnrn if (!dr.IsDBNull(21)) lay.dcLineWidth = dr.GetDecimal(21);rnrn LoadLayerData(ref lay);rn CGlobal.m_Layers.AddLayer(ref lay);rn //SetInfoMsg("正在加载" + lay.sName);rn rnrnrn dr.Close();rn rnrnrnrnrn求高手``````SOS ```SOS````

没有更多推荐了,返回首页