home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7771 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.9 KB

  1. Path: sparky!uunet!wupost!emory!gatech!paladin.american.edu!darwin.sura.net!ra!mimsy!afterlife!adm!news
  2. From: astoner@mcis.messiah.edu
  3. Newsgroups: comp.lang.pascal
  4. Subject: Using streams
  5. Message-ID: <34848@adm.brl.mil>
  6. Date: 31 Dec 92 15:32:49 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 30
  9.  
  10. Hello all,
  11.    I just recently had some assistance on converting an object I had to
  12. one that was streamable.  I also asked my assistor (D. Elson) if he could
  13. explain a little bit about streams.  Which he did very well.  His
  14. description was enough to get me to try to learn how to use them.  I now
  15. have a small sample program with my newly converted object.  The
  16. questions that I have are:
  17. 1.  Is there a way to tell what type of object is being read from a stream?
  18. I know the stream has to know because it uses the Object ID to call the
  19. correct Get method, but I haven't been able to determine if my main program
  20. can tell.  I thought I had read at one place in the manual that you needed
  21. to keep track of the order things were put on the stream but haven't been
  22. able to find it again.
  23. 2.  Is there a way to conditionally uses a different type of stream in a
  24. different environment?  For example, my machine has about 5 meg of EMS,
  25. so an EMS streams is nice.  But if I take it down the hall the computer
  26. may not have any EMS so a disk based stream would be the solution.  Is
  27. there a way to determine what type of stream to use in these situations?
  28. Maybe using compiler directives or something.
  29.  
  30. Thanks,
  31.  
  32. .......................................................................
  33.  
  34. Item Subject: signature
  35. --------------------------------------------------------------------------------
  36.   Allen E. Stoner                       Internet: astoner@mcis.messiah.edu
  37.   Academic Application Programmer                 Messiah College
  38.   Voice:  (717)766-2511 ext. 7109       Fax:  (717)691-6002
  39. --------------------------------------------------------------------------------
  40.