|
阅读:1244回复:2
用delphi+AO碰到的问题(求助)!
<P>var
lyr:ILayer; ftrlyr:IFeaturelayer; ftrcls:IFeatureClass; begin lyr:=MapControl1.Layer[0]; ftrlyr:=lyr as IFeaturelayer; ftrlyr.Get_FeatureClass(ftrcls);</P> <P>问题是当取ftrlyr.Get_FeatureClass(ftrcls) 取得IFeatureClass的接口取不到,但在VB中我写一样的代码是可以的!</P> <P>请高手指点!</P> <P>还有在AO库导入DELPHI中后出现了原来接口中没有的方法</P> <P>GhostMethod_*****</P> <P>如下:</P> <P> function GhostMethod_IFeatureLayer_0_1: HResult; stdcall; function GhostMethod_IFeatureLayer_4_2: HResult; stdcall; function GhostMethod_IFeatureLayer_8_3: HResult; stdcall; function GhostMethod_IFeatureLayer_12_4: HResult; stdcall; function GhostMethod_IFeatureLayer_16_5: HResult; stdcall; function GhostMethod_IFeatureLayer_20_6: HResult; stdcall; function GhostMethod_IFeatureLayer_24_7: HResult; stdcall; function GhostMethod_IFeatureLayer_28_8: HResult; stdcall; function GhostMethod_IFeatureLayer_32_9: HResult; stdcall; function GhostMethod_IFeatureLayer_36_10: HResult; stdcall; function GhostMethod_IFeatureLayer_40_11: HResult; stdcall; function GhostMethod_IFeatureLayer_44_12: HResult; stdcall; function GhostMethod_IFeatureLayer_48_13: HResult; stdcall; function GhostMethod_IFeatureLayer_52_14: HResult; stdcall; function GhostMethod_IFeatureLayer_56_15: HResult; stdcall; function GhostMethod_IFeatureLayer_60_16: HResult; stdcall; function GhostMethod_IFeatureLayer_64_17: HResult; stdcall; function GhostMethod_IFeatureLayer_68_18: HResult; stdcall; function GhostMethod_IFeatureLayer_72_19: HResult; stdcall; function GhostMethod_IFeatureLayer_76_20: HResult; stdcall; function GhostMethod_IFeatureLayer_80_21: HResult; stdcall; 这些方法是做什么用的啊?</P> |
|
|
1楼#
发布于:2005-08-31 11:15
<img src="images/post/smile/dvbbs/em01.gif" />怎么没有高手回呀?我也想看看
|
|
|
2楼#
发布于:2005-09-06 10:12
<P>AO对DELPHI支持不好,问题多多.<BR><BR>那些GhostMethod_*****倒是可以去掉的,DELPHI需要打个升级补丁.<BR><BR>总之,如果你是用ARCGIS9,delphi就用不上了. 我现在用C#.</P>
|
|