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

 

 ·java如何画虚线。    »显示摘要«
    摘要: g.drawline()只能画实线。虚线怎么画。 ......
    摘要: 如何再一个页面中使用javascript判断这个页面是否载到一个指定的frame中。例如我有一个frame命名为body,如何得知一个页面是否在body中显示,还是在其他frame中显示。 ......


大侠帮忙看看这个问题

TBlobStream*   strread;  
      int   len;  
      strread=new   TBlobStream((TBlobField*)IBTable1->FieldByName("A"),bmRead);  
       
      len=strread->Size;  
      char*   str=new   char[len];  
      strread->Read(str,len);  
      Memo1->Text=str;  
   
  我用try语句测试过,编译可以通过,运行的时候说第三句通不过,说什么类型不匹配,  
  大侠看看是什么问题,多谢

NO.1   作者: LuoGD

数据库中A不是BLOB类型

NO.2   作者: zswang

strread=new   TBlobStream((TBlobField*)(IBTable1->FieldByName("A"),bmRead));  
 

NO.3   作者: plainsong

TBlobStream*   strread;  
  TBlobField*   FieldA;  
      int   len;  
      FieldA   =   dynamic_cast<TBlobField*>(IBTable1->FieldByName("A"));  
      if   (!FieldA)  
          throw   *(new   Exception(AnsiString("字段类型不是Blob")));  
      strread=new   TBlobStream(FieldA,bmRead);

NO.4   作者: jishiping

zswang(伴水)   的花括号放错地方,编译同不过,应该是:  
  strread=new   TBlobStream((TBlobField*)(IBTable1->FieldByName("A")),   bmRead);

NO.5   作者: lluunn007

Mark@_@

NO.6   作者: whitetiger8

同意   jishiping(JSP   季世平)


    摘要: 数据窗口导出文本时,如何让任意字段不导出? ......
» 本期热门文章:

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