当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 目前做的项目,将卡上的用户照片信息读出后(获得照片大小和地址),怎样将其写入到oracle的相关字段中(photo),如果要查询,该如何读出photo字段的照片呢? ......
    摘要: 问题通上,希望能给个例子,谢谢!!! ......


Stack Overflow

---------------------------  
  Microsoft   Visual   C++  
  ---------------------------  
  Unhandled   exception   in   Draw.exe   (MFC42D.DLL):   0xC00000FD:   Stack   Overflow.  
  ---------------------------  
  确定        
  ---------------------------  
  今天作了个区域填充函数,结果一测试发现上面的错误,程序如下:  
  DrawFilling(int   x,int   y,int   fill_color,int   boundary_color)  
  {  
          CClientDC   dc(this);  
          dc.SetROP2(R2_NOT);  
          int   c;  
   
          c=dc.GetPixel(x,y);    
   
          if((c!=boundary_color)&&(c!=fill_color))      
  {  
            //dc.SetPixel(x,   y,   fill_color);    
            DrawFilling(x,   y+1,   fill_color,   boundary_color);  
    DrawFilling(x,   y-1,   fill_color,   boundary_color);  
    DrawFilling(x+1,y,   fill_color,   boundary_color);  
            DrawFilling(x-1,y,   fill_color,   boundary_color);  
             
             
  }  
   
  }  
   
  有好的建议题题啊~~!

NO.1   作者: DentistryDoctor

无限递归。

NO.2   作者: Jarrylogin

你用递规的时候没有出口条件。

NO.3   作者: dirdirdir3

DrawFilling(int   x,int   y,int   fill_color,int   boundary_color)  
  {  
          if(x<0   |   x>x最大值   |   y<0   |   y>y最大值)  
                  return;  
          CClientDC   dc(this);  
          dc.SetROP2(R2_NOT);  
          int   c;  
 

NO.4   作者: dirdirdir3

我晕,你把CClientDC   dc(this);也放进第归函数来了?  
  你在其他地方定义再传进来。  
  DrawFilling(int   x,int   y,int   fill_color,int   boundary_color,CClientDC   *dc)  
  {  
          if(x<0   |   x>x最大值   |   y<0   |   y>y最大值)  
                  return;  
          dc->SetROP2(R2_NOT);  
          int   c;  
          c=dc->GetPixel(x,y);    
   
          if((c!=boundary_color)&&(c!=fill_color))      
  {  
            //dc.SetPixel(x,   y,   fill_color);    
            DrawFilling(x,   y+1,   fill_color,   boundary_color,dc);  
    DrawFilling(x,   y-1,   fill_color,   boundary_color,dc);  
    DrawFilling(x+1,y,   fill_color,   boundary_color,dc);  
            DrawFilling(x-1,y,   fill_color,   boundary_color,dc);  
  }  
   
  }  
 


    摘要: 从csv文件把数据读到stringgrid里面去,如何实现点击列头排序? 好像没有这样的属性,应该怎么办呢? 请教各位大侠,请不吝赐教。给个解决方案的链接网址也行啊。 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE