Article View: borland.public.cppbuilder.nativeapi
Article #8691Re: Instantiating and calling a class contained in a DLL
From: Bruce Salzman
Date: Mon, 27 Sep 2004 14:49
Date: Mon, 27 Sep 2004 14:49
17 lines
1734 bytes
1734 bytes
> Just a "heads up" - it is usually a bad idea to export classes from > DLLs. If you are creating a package then it's okay but for general > use > it's a no-no. The problem is that class exports are compiler/vendor > unique and in exporting classes you are producing a DLL that is > probably only useable by software written using the same compiler. > It's > even conceivable that different versions of the same compiler will > generate incompatible exports. There is nothing wrong with exporting classes from DLLs. Makes for nice modularization and reuse of said classes in my project. If you don't need portability between compilers, then that is a non-issue. I do avoid using the VCL anywhere but in my EXE, though. Regards, Bruce
Technical Details
Message-ID:
<41582893@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4154a05c$1@newsgroups.borland.com> <4157c9e7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e81079fc94e5a83 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <4154a05c$1@newsgroups.borland.com> <4157c9e7@newsgroups.borland.com> Subject: Re: Instantiating and calling a class contained in a DLL Date: Mon, 27 Sep 2004 09:49:50 -0500 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 24.94.231.89 Message-ID: <41582893@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096296595 24.94.231.89 (27 Sep 2004 07:49:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail