home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!slip203.telnet1.QueensU.CA!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: Streams for TV and Windows, are they compatible?
- Message-ID: <dmurdoch.328.727624857@mast.queensu.ca>
- Lines: 31
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <930021.134440.achristo@nutri1>
- Date: Thu, 21 Jan 1993 14:00:58 GMT
-
- In article <930021.134440.achristo@nutri1> achristo@pons.uio.no (Alf Christophersen) writes:
-
- >I'm at spare time programming on a program for Windows which in
- >future also will be implemented for TV. The program store all its
- >data on streams. But I'm wondering how I should in future convert
- >these datastreams when I'm going to transport the data to a
- >parallell TV implementation. Is the ID for TCollection the same
- >for both TV streams and Windows streams?
-
- Anything from the Objects unit will have the same ID, since it's the same
- source code for both TV and OWL (as of version 7). One omission from OWL is
- the TResourceFile and related types; I've been told Borland was worried
- about confusion with Windows resources. I think this is too bad, since
- TResourceFiles are much more useful than Windows resources.
-
- >At the same time, when BP 7 came, it had introduced pChar also
- >for the Turbo Pascal v. 7, but why hasn't the stream mechanism
- >introduced the pchar strRead and strwrite mechanism? The only
- >mechanism available is the ReadStr and WriteStr that use pString.
- >What about the TStrCollection of Windows, why wasn't this
- >introduced in TV? It seems to me like TV for TP7 was released 90%
- >ready.
-
- It's a real pain to write a general Asciiz reader. Unless you know how much
- data to expect, you have to allocate a huge buffer just in case or have more
- complicated code to let your buffer grow as necessary.
-
- The TStrCollection *is* included in TV, but seems to have been forgotten in
- the documentation.
-
- Duncan Murdoch
-