home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16602 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!sarah!cook!psinntp!psinntp!dorsai.com!head
  3. From: head@dorsai.com (Howard Pinsley)
  4. Subject: Using DLL's w/BC++
  5. Message-ID: <1992Nov18.182803.28380@dorsai.com>
  6. Organization: The Dorsai Embassy +1.718.729.5018
  7. X-Newsreader: Tin 1.1 PL4
  8. Date: Wed, 18 Nov 1992 18:28:03 GMT
  9. Lines: 27
  10.  
  11. I have an application that I originally linked against the static versions of 
  12. the C RTL, Borland's Classlib and OWL.  Since my .exe size is approaching 1MB, I
  13. thought it would be a good time to use the DLL's for these three libraries.
  14.  
  15. I'm having trouble doing it.  I first selected the dynamic library options in
  16. the IDE's linker options dialog.  This gave me a lot of errors.  I then realized
  17. that the documentation does indicate that I should define both _RTLDLL and 
  18. _CLASSDLL (with single, NOT double underscores).  This eliminated the previous
  19. linker errors.  However, now I'm getting "type mismatch in redeclaraion" 
  20. compiler errors.
  21.  
  22. I believe it has something to do with the fact that I am not using the 
  23. _CLASSTYPE macro anywhere (I'm not sure where it should be used).  When I define
  24. a new class, I typically do the following:
  25.  
  26. _CLASSDEF(TMyClass)
  27.  
  28. class TMyClass : public TWindow {
  29. };
  30.  
  31. Should _CLASSTYPE be inserted between class and TMyClass?  I am confused.  Can
  32. someone enlighten me?  Thanks.
  33. -- 
  34.  
  35. Howard Pinsley                                             Voice: (212) 836-8322
  36. head@dorsai.com                                              Fax: (212) 836-8689
  37.  
  38.