huzifu
路人甲
路人甲
  • 注册日期2005-05-23
  • 发帖数1
  • QQ
  • 铜币106枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1244回复:2

用delphi+AO碰到的问题(求助)!

楼主#
更多 发布于:2005-05-23 10:59
<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>
喜欢0 评分0
xiaotirong
路人甲
路人甲
  • 注册日期2004-12-21
  • 发帖数44
  • QQ345131571
  • 铜币278枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2005-08-31 11:15
<img src="images/post/smile/dvbbs/em01.gif" />怎么没有高手回呀?我也想看看
举报 回复(0) 喜欢(0)     评分
softunnel
路人甲
路人甲
  • 注册日期2005-03-28
  • 发帖数7
  • QQ
  • 铜币132枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2005-09-06 10:12
<P>AO对DELPHI支持不好,问题多多.<BR><BR>那些GhostMethod_*****倒是可以去掉的,DELPHI需要打个升级补丁.<BR><BR>总之,如果你是用ARCGIS9,delphi就用不上了. 我现在用C#.</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部