Article View: borland.public.cppbuilder.nativeapi
Article #5170Re: DLL - which location is it called from ??
From: David
Date: Wed, 28 Sep 2005 13:41
Date: Wed, 28 Sep 2005 13:41
24 lines
1454 bytes
1454 bytes
Yes this works a treat. Thanks to both. regards david "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:433a2585$1@newsgroups.borland.com... > > "David" <davids@unite.com.au> wrote in message > news:433a0fba$1@newsgroups.borland.com... > > > In my DLL code how can I find which directory it is located > > and being called from by the calling app ?? > > Use GetModuleFileName(), specifying the HINSTANCE that is passed in as a > parameter to your DllEntryPoint() function. > > > Gambit > >
Technical Details
Message-ID:
<433a9cec$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<433a0fba$1@newsgroups.borland.com> <433a2585$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,66c18af770c24da X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David" <davids@unite.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <433a0fba$1@newsgroups.borland.com> <433a2585$1@newsgroups.borland.com> Subject: Re: DLL - which location is it called from ?? Date: Wed, 28 Sep 2005 23:41:24 +1000 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 211.26.206.233 Message-ID: <433a9cec$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127914732 211.26.206.233 (28 Sep 2005 06:38:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail