Article View: borland.public.cppbuilder.nativeapi
Article #6825Re: build dll into exe
From: Dennis Jones
Date: Wed, 13 Apr 2005 08:48
Date: Wed, 13 Apr 2005 08:48
27 lines
1846 bytes
1846 bytes
"JohnnyB" <Johnnyb@_nospam_uni.de> wrote in message news:425cd2de@newsgroups.borland.com... > > Hi, > > is there a way to build a dll into a exe with CBuilder 6? Do you mean so that the DLL does not have to be distributed with the EXE? If so, there several possible answers: no, sort of, and maybe yes. No...a DLL cannot be "built into" an EXE. In fact, one primary impetus for DLL's in the first place was to separate them from the applications that use them. Sort of...if you have the source code for the DLL, then you could build a static library and include that in the EXE instead, or just include the source in your EXE directly. Maybe yes...if you are willing to explicitly load the DLL (using LoadLibrary(), as opposed to implicitly loading it via an import library), you could perhaps include the DLL in your EXE as a binary resource and then extract and load the DLL at runtime. Does that answer your question? - Dennis
Technical Details
Message-ID:
<425cdcca$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.agarik.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<425cd2de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3f1c3829f9e4d7ca X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@bogus.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <425cd2de@newsgroups.borland.com> Subject: Re: build dll into exe Date: Wed, 13 Apr 2005 01:48:06 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 204.200.27.7 Message-ID: <425cdcca$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113382090 204.200.27.7 (13 Apr 2005 01:48:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.agarik.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail