home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13599 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.2 KB  |  61 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!ort
  3. From: ort@netcom.com (David Oertel)
  4. Subject: Re: Borland BIDS Library
  5. Message-ID: <bbyn+rq.ort@netcom.com>
  6. Date: Mon, 14 Sep 92 07:21:43 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Summary: simple BIDS template example
  9. References: <tdukes.920901182152@alva.ee.eng.auburn.edu>
  10. Lines: 49
  11.  
  12.  
  13.  
  14. >> The following is a short program that I can't get to compile. I get
  15. >> the following error:
  16.  
  17. >> \borlandc\classlib\include\listimp.h 502: Illegal structure operation
  18.  
  19.  
  20. >> Am I doing something wrong or are the BIDS libraries useless?
  21. >> (My guess is the former.:)
  22.  
  23. >> I am using BC++3.1 w/AF
  24.  
  25.  
  26. >> thanks
  27.  
  28. >> Todd Dukes
  29.  
  30. >> /* attempt to use BI_ListImp */
  31.  
  32. >> #include <listimp.h>
  33.  
  34. >> class point
  35. >> {
  36. >>     ...
  37. >> };
  38.  
  39. Add the following line here:
  40. typedef BI_IListImp<point> PointListTyp;
  41.  
  42. >> void main()
  43. >> {
  44. Remove the following line:
  45. >>     BI_IListImp<point> PointList;
  46.  
  47. Add the following line here:
  48.     PointListTyp Pointlist;
  49.  
  50. >>     point * pp = new point(1,1);
  51.  
  52. >>     PointList.add(pp);
  53.  
  54. >> }
  55.  
  56.     I'm using BIDS with success.
  57.  
  58.     Dave Oertel
  59.     ort@netcom.com
  60. -- 
  61.