🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#10133
From: Mike Williams (TeamB)
Date: Tue, 18 May 2004 17:24
15 lines
1415 bytes
On 18 May 2004, "Remy Lebeau \(TeamB\)" 
<gambit47.no.spam@no.spam.yahoo.com> wrote:

> Change HInstance to NULL instead:
> 
>     GetModuleFileName(NULL, FileNameBuf, sizeof(FileNameBuf));

Hey, is there not enough work for you over with that other product? <g>

Actually, NULL won't as that's an ugly variant thing.  Passing 0 will work 
but ParamStr(0) is a lot easier without having to resort to the messy C 
code of the Windows API.

-- 
-Mike (TeamB)
Technical Details
Message-ID: <Xns94ED8865D5BB1mikewteamb@207.105.83.66>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!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
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi.win32
Subject: Re: "Which application loaded me?" asked the DLL
From: "Mike Williams (TeamB)" <mikew@remove.aps-soft.com>
References: <40a9fd35@newsgroups.borland.com> <Xns94ED56C494E6Fmikewteamb@207.105.83.66> <40aa3fbb$1@newsgroups.borland.com>
Organization: APS, Inc
Message-ID: <Xns94ED8865D5BB1mikewteamb@207.105.83.66>
User-Agent: Xnews/06.08.25
NNTP-Posting-Host: 66.107.65.98
Date: 18 May 2004 10:24:29 -0700
X-Trace: newsgroups.borland.com 1084901069 66.107.65.98 (18 May 2004 10:24:29 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail