🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#13401
From: Emmanuel
Date: Wed, 15 Oct 2003 18:41
24 lines
1657 bytes
char c[51];
GetModuleFileName(NULL,c,50)

It just return "C:\WINNT\System32\dllhost.exe"

but I want it to return  "abc001.dll"


"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> д���ʼ�
news:3f8d7d0b@newsgroups.borland.com...
> Look at the function GetModuleFileName
>
> .  Ed
>
> > Emmanuel wrote in message
> > news:3f8d7b5e$2@newsgroups.borland.com...
> >
> > Would you tell me how can the program know the file
> > name itself for a DLL file?
> >
> > eg: the "abc001.dll" how can it know it's file name is
> > "abc001.dll" but not "abc002.dll"
>
>
Technical Details
Message-ID: <3f8d94ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,c6451c230ee766d8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-15 11:49:58 PST
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com>
Subject: Re: How can te program know it's file name
Date: Thu, 16 Oct 2003 02:41:48 +0800
Lines: 26
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: 202.146.98.71
Message-ID: <3f8d94ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066243308 202.146.98.71 (15 Oct 2003 11:41:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail