🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

GetFileVersionInfoSize for DLL

#3743
From: poojo hackma
Date: Wed, 03 May 2006 21:39
12 lines
1251 bytes
How do I get the DLL version information from within my DLL?

I want to create a property that others can read to tell what version it is.

I tried
    ::GetFileVersionInfoSize(ParamStr(0).c_str(), &dwHandle);

and

    ::GetFileVersionInfoSize(Application->ExeName.c_str(), &dwHandle);

Both give me the parent executable, not my DLL. 
Technical Details
Message-ID: <44592306$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,440901ce027e115d,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "poojo hackma" <poojo.com/mail>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: GetFileVersionInfoSize for DLL
Date: Wed, 3 May 2006 16:39:18 -0500
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 0618-1, 05/03/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 12.45.133.147
Message-ID: <44592306$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146692358 12.45.133.147 (3 May 2006 14:39:18 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail