wy2318
外卖仔
外卖仔
  • 注册日期2004-05-29
  • 发帖数44
  • QQ
  • 铜币364枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1128回复:0

向高手请教AO加c#问题!

楼主#
更多 发布于:2005-04-12 13:48
<P>请问有谁知道这段代码那里错了吗?</P>
<P>private double GetIntArea(IPolygon2 pPolygon,IRing pExtRing,bool PCSis54,bool Lis3DuDai)
  {  
   double IntArea=0;
   int i=0;
   int IntRingCount=pPolygon.get_InteriorRingCount(pExtRing);
   if(IntRingCount==0)
   {
    return 0;
   }
   IRing[] pIntRings=new IRing[IntRingCount];
pPolygon.QueryInteriorRingsEx(pExtRing,IntRingCount,out pIntRings[0]);</P>
<P>//这句出现错误,为什么</P>
<P>for(i=0;i<IntRingCount;i++)
   {
               IntArea=IntArea+GetRingArea(pIntRings[0],true,true);
   }
   return IntArea;</P>
<P>  }</P>
喜欢0 评分0
游客

返回顶部