http://singlepine.cnblogs.com/articles/264372.html他这个上的有点问题
public void l_CalcLunarDate(out ushort iYear, out ushort iMonth, out ushort iDay, uint iSpanDays) 
不知道有没有人改好的,发一下上来,谢谢了!

解决方案 »

  1.   

    把tmp = LunarMonthDays(iYear, iMonth); 
    改成
     tmp = LunarMonthDays(iYear, iMonth)&0xFFFF;
    就好了
      

  2.   

    上面地址上 有个回复
    你的那个函数,我用了一下,好象是闰月时取位那部分有点问题,取低位时造成的错误,把取低位的语句//tmp = LunarMonthDays(iYear,iMonth); //取低位 
    改为这个: 
    tmp = LunarMonthDays(iYear, iMonth)&0xFFFF; 
    好象就好,不知对不对,? 
    主要是在public void l_CalcLunarDate(out ushort iYear, out ushort iMonth, out ushort iDay, uint iSpanDays) 这个函数中, 
    不知道效果如何?
      

  3.   

    看看这个呢
    http://dev.21tx.com/2003/06/14/10147.html
      

  4.   

    不会帮LZ UP  给点分
      

  5.   

    http://www.cnblogs.com/cncxz/archive/2007/02/09/646451.html
      

  6.   

    Click the link to solve your problem.Good luck!