home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!news.duc.auburn.edu!eng.auburn.edu!tdukes
- From: tdukes@eng.auburn.edu (Todd J Dukes)
- Subject: Borland BIDS Library
- Message-ID: <tdukes.920901182152@alva.ee.eng.auburn.edu>
- Sender: Todd Dukes
- Nntp-Posting-Host: alva.ee.eng.auburn.edu
- Organization: Auburn University Engineering
- Date: Tue, 1 Sep 1992 23:21:52 GMT
- Lines: 49
-
- I have been using the Borland Object based container classes. I am
- starting a new project and thought it would be a good time to change
- over to the template based container classes.
-
- So far I haven't had much luck. I am just trying to insert a pointer
- to a class into a list. I can get the same program to compile if I
- just make a list of int, but it will not work for a simple class.
- The following is a short program that I can't get to compile. I get
- the following error:
-
- \borlandc\classlib\include\listimp.h 502: Illegal structure operation
-
-
- Am I doing something wrong or are the BIDS libraries useless?
- (My guess is the former.:)
-
- I am using BC++3.1 w/AF
-
-
- thanks
-
- Todd Dukes
-
- /* attempt to use BI_ListImp */
-
- #include <listimp.h>
-
- class point
- {
- public:
- int x;
- int y;
- point(int nx, int ny)
- {
- x = nx;
- y = ny;
- }
- };
-
- void main()
- {
- BI_IListImp<point> PointList;
-
- point * pp = new point(1,1);
-
- PointList.add(pp);
-
- }
-
-