Article View: borland.public.cppbuilder.nativeapi
Article #10415Re: Exception classes in DLL
From: Sten Larsson
Date: Wed, 28 Apr 2004 15:48
Date: Wed, 28 Apr 2004 15:48
28 lines
2086 bytes
2086 bytes
Andrue Cope wrote: >> OTOH - doesn't VCL throw exceptions, also when it is used as a BPL ? > >Yes but a VCL BPL can reasonably assume that the thing calling it is VCL >compatible code. Remy isn't saying that it won't work - he's saying that it >depends on who is calling the DLL. > >If you are writing a DLL that will absolutely, without question, only be >called by your own code generated by the same compiler with the appropriate >switches then you can do it. > >The issue is that one of the main reasons for having DLLs, one of their >main features, is that they aren't supposed to be tied to a specific EXE >like that. By implementing your project that way you are producing a >non-standard DLL. > >It is generally best to consider a DLL as a separate executable. Assume >that the only thing that can safely cross the boundary is POD (Plain Old >Data - nothing you can't create in 'C'). I'd even think twice about letting >floating point numbers out of a DLL frankly. This makes sense. Thanks! /sten /sten --- For direct email, remove _ and X.
Technical Details
Message-ID:
<9ckv80h5h3eld8nvufkiita7imnopmktum@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<qlcu80tqns7riredje4qlugd62l8ejti7u@4ax.com> <408f3991$1@newsgroups.borland.com> <mjlu80dfeu835n3k2dujao90l5g9iol4vc@4ax.com> <wciv630aac47.kfxbc4prvgob$.dlg@40tude.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b9e2adba161972ac X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-28 09:10:22 PST From: Sten Larsson <s_t_enX@Xs_ten_l.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Exception classes in DLL Date: Wed, 28 Apr 2004 08:48:45 -0700 Message-ID: <9ckv80h5h3eld8nvufkiita7imnopmktum@4ax.com> References: <qlcu80tqns7riredje4qlugd62l8ejti7u@4ax.com> <408f3991$1@newsgroups.borland.com> <mjlu80dfeu835n3k2dujao90l5g9iol4vc@4ax.com> <wciv630aac47.kfxbc4prvgob$.dlg@40tude.net> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.81.121.6 X-Trace: newsgroups.borland.com 1083167657 66.81.121.6 (28 Apr 2004 08:54:17 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail