home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8390 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.0 KB  |  43 lines

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