🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17197

Re: Does a DLL know its own path?

#17197
From: Early Ehlinger
Date: Wed, 02 Apr 2003 17:09
11 lines
1487 bytes
"Nick B. Cassos" <nbc@no_spam.ath.forthnet.gr> wrote:
> The original poster asked for the path of his own DLL and not of the
> process where the DLL is attached.

That's exactly what the HINSTANCE passed to DllMain/DllEntryPoint is - the
handle to the DLL as opposed to the handle to the process.

--
-- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697
-- www.respower.com -- 500+ GHz Supercomputer Starting At USD$0.50/GHz*Hour
Technical Details
Message-ID: <3e8b1941$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e89a8e5$1@newsgroups.borland.com> <ikcj8vkkoh627qccc57je6qv2d1uruhav1@4ax.com> <3e89ba73@newsgroups.borland.com> <fv3l8v4q3fguthh808a3htirmii4lj4c0o@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9b751bad45db0bc8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-02 09:12:53 PST
From: "Early Ehlinger" <early@respower.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e89a8e5$1@newsgroups.borland.com> <ikcj8vkkoh627qccc57je6qv2d1uruhav1@4ax.com> <3e89ba73@newsgroups.borland.com> <fv3l8v4q3fguthh808a3htirmii4lj4c0o@4ax.com>
Subject: Re: Does a DLL know its own path?
Date: Wed, 2 Apr 2003 11:09:20 -0600
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 206.166.224.226
Message-ID: <3e8b1941$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049303361 206.166.224.226 (2 Apr 2003 09:09:21 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail