Article View: borland.public.cppbuilder.nativeapi
Article #13521Re: If is possible to close a DLL pogram?
From: Ed Mulroy [TeamB]
Date: Tue, 07 Oct 2003 21:32
Date: Tue, 07 Oct 2003 21:32
20 lines
1685 bytes
1685 bytes
A DLL is not a program. An executable is a program and executables uses DLL's. If you want to load a DLL in your program only when you need it and unload it after then explicitly load it with LoadLibrary, get the addresses for functions it exports with GetProcAddress and unload it when you are done with FreeLibrary. You can find out if it is loaded by making a call to GetModuleHandle and checking the return value. . Ed > Emmanuel wrote in message > news:3f82dd9b@newsgroups.borland.com... > > I am writing a DLL Program, if it possible to close the dll > program inside the program? > > If possile, How?
Technical Details
Message-ID:
<3f8330f1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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:
<3f82dd9b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,300397fc9e602192 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-07 14:49:27 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f82dd9b@newsgroups.borland.com> Subject: Re: If is possible to close a DLL pogram? Date: Tue, 7 Oct 2003 17:32:01 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 206.228.162.84 Message-ID: <3f8330f1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065562353 206.228.162.84 (7 Oct 2003 14:32:33 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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