🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1796

Re: get dll path

#1796
From: Remy Lebeau (TeamB)
Date: Thu, 08 Jul 2004 18:15
16 lines
1243 bytes
"Fabi�n" <fabianfierro@hotmail.com> wrote in message
news:40ed8609$1@newsgroups.borland.com...

> I can't figure the way to get the path of the dll.

Call GetModuleFileName() using the HINSTANCE passed to the DLL's
DllEntryPoint() function.

> All I get is the path of  dllhost.exe.  (Application->ExeName)

You are not specifying the proper HINSTANCE when calling
GetModuleFileName().


Gambit
Technical Details
Message-ID: <40ed8f41$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40ed8609$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,319a966748b9038a
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <40ed8609$1@newsgroups.borland.com>
Subject: Re: get dll path
Date: Thu, 8 Jul 2004 11:15:58 -0700
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.10
Message-ID: <40ed8f41$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089310529 68.69.17.10 (8 Jul 2004 11:15:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail