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