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