Article View: borland.public.cppbuilder.nativeapi
Article #13411Re: How can te program know it's file name
From: Emmanuel
Date: Wed, 15 Oct 2003 20:26
Date: Wed, 15 Oct 2003 20:26
21 lines
1470 bytes
1470 bytes
So, how can I get the DLL's actual HMODULE handle? "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> д���ʼ� news:3f8da65a$1@newsgroups.borland.com... > > "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:
<3f8dad66@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com> <3f8d94ec@newsgroups.borland.com> <3f8da65a$1@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 13:39:59 PST From: "Emmanuel" <emmanuel@erphk.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8d7b5e$2@newsgroups.borland.com> <3f8d7d0b@newsgroups.borland.com> <3f8d94ec@newsgroups.borland.com> <3f8da65a$1@newsgroups.borland.com> Subject: Re: How can te program know it's file name Date: Thu, 16 Oct 2003 04:26:15 +0800 Lines: 23 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: <3f8dad66@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066249574 202.146.98.71 (15 Oct 2003 13:26:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail