Well, um, I'm still using 3.1. I've got 4.?, I just haven't made the move yet. With a little testing, I found that the _CLASSDEF macro that is used to typedef pointers to a class was also exporting the class. I removed this macro from each of my classes and added "typedef classname _FAR * pclassname" and the export problem was solved. Thanks for the help. Your suggestions are valid. However, it doesn't seem to be true that the derived classes are exported if their base class is. This may have something to do with the older version. (If so, I like it).
Main Topics
Browse All Topics





by: thuiPosted on 1998-01-11 at 11:25:33ID: 1299535
The problem is when you export a class, then all of its member functions are exported. The best thing to do is not to export an entire class, but to export the member functions directly. However, sometimes this won't work because if the base class has been exported, then your derived class has to be exported too. Which version of the compiler are you using? If you are using either BC++ 4.5 or BC++ 5.x, then your program size is extremely large before getting this problem.