如题

解决方案 »

  1.   

    TStream is the base class type for stream objects that can read from or write to various kinds of storage media, such as disk files, dynamic memory, and so on.
      

  2.   

    TStream is an abstract or, in C++ terminology, pure virtual class. It should not be instantiated; it relies on abstract or pure virtual methods that must be overridden in descendant classes. Descendant stream objects, such as memory and file streams used for component streaming, are created automatically by the global functions ReadComponentRes and WriteComponentRes. For streaming other kinds of information, choose a descendant class according to the specific data and storage needs. These includeTFileStream (for working with files)
    TStringStream (for manipulating in-memory strings)
    TMemoryStream (for working with a memory buffer)
    TBlobStream (for working with BLOB fields)
    TWinSocketStream (for reading and writing over a socket connection)
    TOleStream (for using a COM interface to read and write)
      

  3.   

    TStream is an abstract or, in C++ terminology, pure virtual class. It should not be instantiated; it relies on abstract or pure virtual methods that must be overridden in descendant classes. Descendant stream objects, such as memory and file streams used for component streaming, are created automatically by the global functions ReadComponentRes and WriteComponentRes. For streaming other kinds of information, choose a descendant class according to the specific data and storage needs. These includeTFileStream (for working with files)
    TStringStream (for manipulating in-memory strings)
    TMemoryStream (for working with a memory buffer)
    TBlobStream (for working with BLOB fields)
    TWinSocketStream (for reading and writing over a socket connection)
    TOleStream (for using a COM interface to read and write)
      

  4.   

    TStream使抽象类,永远不能被实例化。Delphi的编译器在这方面做的很垃圾,这种代码根本就是Error,不允许执行,而不是什么Warning。
    需要用TStream的继承类进行实例化。
      

  5.   

    同一楼上的,
      用
      tempStream:=TFileStream.create;