Article View: borland.public.cppbuilder.nativeapi
Article #15479Re: DLL dymanic x static
From: Bob Gonder
Date: Mon, 30 Jun 2003 20:27
Date: Mon, 30 Jun 2003 20:27
15 lines
1918 bytes
1918 bytes
"Beto" <pasini@netbank.com.br> wrote: >I have a DLL that is loaded with LoadLibrary etc... and is working well. But >now, I'd like to know if there is a way to link the same DLL library >statically in the rest of the program, as if it was a .h library. Can I >include a DLL in my project and compile with the other files, without having >to deliver the DLL to my clients ? If it is a DLL then you distribute it. You can, however, change your code (_dllexport, et al) to be regular functions, create an OBJ instead of a DLL, and link them into your app. If you have very many, you can put the multiple OBJs into a LIB (use TLIB) and link the LIB. But, as long as the DLL is a DLL, whether you use LoadLibrary, or let the loader load it automaticly, you must give it to the user.
Technical Details
Message-ID:
<pt61gvkirgf5q7g1dqr5d1e5kihr2mcfuq@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3effb54a$1@newsgroups.borland.com> <3f006705@newsgroups.borland.com> <3f0080bf@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1bdc0a006119cb59 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-30 13:32:03 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: DLL dymanic x static Date: Mon, 30 Jun 2003 13:27:13 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <pt61gvkirgf5q7g1dqr5d1e5kihr2mcfuq@4ax.com> References: <3effb54a$1@newsgroups.borland.com> <3f006705@newsgroups.borland.com> <3f0080bf@newsgroups.borland.com> 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: 67.31.165.106 X-Trace: newsgroups.borland.com 1057004835 67.31.165.106 (30 Jun 2003 13:27:15 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail