🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "Which application loaded me?" asked the DLL

#10134
From: Peter Below (TeamB)
Date: Tue, 18 May 2004 19:09
19 lines
1732 bytes
In article <40aa3fbb$1@newsgroups.borland.com>, Remy Lebeau (TeamB) wrote:
> 
> > GetModuleFileName(HInstance, FileNameBuf, sizeof(FileNameBuf));
> 
> Change HInstance to NULL instead:
> 
>     GetModuleFileName(NULL, FileNameBuf, sizeof(FileNameBuf));

Not NULL, never NULL in fact. This is Delphi, not C/C++, so its either 0 or nil.
NULL is a variant constant in Delphi nobody ever needs <g>.


--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Technical Details
Message-ID: <VA.0000ade7.00cf15ba@nomail.please>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40a9fd35@newsgroups.borland.com> <Xns94ED56C494E6Fmikewteamb@207.105.83.66> <40aa3fbb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,198e432f54304df2
X-Google-Thread: 14438e,198e432f54304df2
X-Google-Attributes: gid10cc67,gid14438e,public
Date: Tue, 18 May 2004 21:09:41 +0200
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi.win32
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Organization: TeamB
Message-ID: <VA.0000ade7.00cf15ba@nomail.please>
Subject: Re: "Which application loaded me?" asked the DLL
From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com>
Reply-To: 100113.1101@compuXXserve.com
References: <40a9fd35@newsgroups.borland.com> <Xns94ED56C494E6Fmikewteamb@207.105.83.66> <40aa3fbb$1@newsgroups.borland.com>
NNTP-Posting-Host: 172.181.57.99
X-Trace: newsgroups.borland.com 1084907261 172.181.57.99 (18 May 2004 12:07:41 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail