🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to obtain Version Information for a DLL

#12629
From: Remy Lebeau (TeamB)
Date: Mon, 24 Nov 2003 05:50
15 lines
1621 bytes
"Daniel Stevenson" <d.stevenson@ocreage.com.au> wrote in message
news:3fc1834c$1@newsgroups.borland.com...
> I've been using the GetFileVersionInfo() api, which works great for
> a .exe but if I use it for a .dll, it return the version information for
the .exe.

GetFileVersionInfo() expects a filename.  The only way what you describe can
occur is if you specify the exe's filename instead of the DLL's filename.
DLLs most certainly do have their own separate version resources, and can
definately be obtained by GetFileVersionInfo() separately from the exe.
Just make sure that you are specifying the correct filename to begin with.


Gambit
Technical Details
Message-ID: <3fc19b4c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fc1834c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,51f280d7586b7c74
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-23 21:52:58 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fc1834c$1@newsgroups.borland.com>
Subject: Re: How to obtain Version Information for a DLL
Date: Sun, 23 Nov 2003 21:50:53 -0800
Lines: 17
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.149
Message-ID: <3fc19b4c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069652812 67.22.137.149 (23 Nov 2003 21:46:52 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail