🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can te program know it's file name

#13409
From: Remy Lebeau (TeamB)
Date: Wed, 15 Oct 2003 19:58
14 lines
1280 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message
news:3f8d94ec@newsgroups.borland.com...
> char c[51];
> GetModuleFileName(NULL,c,50)
>
> It just return "C:\WINNT\System32\dllhost.exe"
>
> but I want it to return  "abc001.dll"

Use the DLL's actual HMODULE handle, not NULL.


Gambit
Technical Details
Message-ID: <3f8da65a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com> <3f8d94ec@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c6451c230ee766d8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-15 13:11:05 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com> <3f8d94ec@newsgroups.borland.com>
Subject: Re: How can te program know it's file name
Date: Wed, 15 Oct 2003 12:58:21 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f8da65a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066247770 67.22.137.75 (15 Oct 2003 12:56:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail