home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11812 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.8 KB

  1. Xref: sparky comp.lang.c++:11812 comp.windows.ms:18115
  2. Path: sparky!uunet!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu!shyam007
  3. From: shyam007@ccwf.cc.utexas.edu (Shyam sundar P Cherlopalle)
  4. Newsgroups: comp.lang.c++,comp.windows.ms
  5. Subject: BC 3.1 PStream error-- Help required
  6. Message-ID: <76825@ut-emx.uucp>
  7. Date: 30 Jul 92 20:37:11 GMT
  8. Sender: news@ut-emx.uucp
  9. Reply-To: shyam007@ccwf.cc.utexas.edu (Shyam sundar P Cherlopalle)
  10. Followup-To: comp.lang.c++
  11. Organization: The University of Texas at Austin, Austin TX
  12. Lines: 34
  13. Originator: shyam007@tramp.cc.utexas.edu
  14.  
  15.  
  16.  
  17.  
  18.  
  19.   I have been trying to use the TStreamable class of Borland's ObjectWindows
  20.   and write the stream to a file. The class is derived multiply from
  21.   TNSCollection and TStreamable classes. As required by decendents of 
  22.   TStreamable I defined the four operator overloading functions, read, 
  23.   write, build etc and registered the class using 
  24.  
  25.  
  26.     TStreamableClass RegClassname(....);
  27.  
  28.   But when I tried to write an instance of the above class to a file I have
  29.   been getting an error saying
  30.  
  31.      PSTREAM ERROR CONDITION -- Type not Registered.
  32.  
  33.   The class I defined is very similar to the class TPointArray in the steps
  34.   example of ObjectWindows. Can somebody help me get around this by suggesting
  35.   probable error I might have committed.
  36.  
  37.   I have been working on this problem for a week now and have been unable to
  38.   hack around it. It would also be very helpful if some kind soul could send
  39.   me some source code which shows the usage of the above.
  40.  
  41.   Thanks in advance,
  42.  
  43.   -- Shyam
  44. ----------------------------------------------------------------------------
  45. Shyam Cherlopalle                              University of Texas at Austin
  46. email : shyam007@ccwf.cc.utexas.edu        
  47. ----------------------------------------------------------------------------
  48.  
  49.