🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a package's location?

#17590
From: Fishface
Date: Sun, 23 Mar 2003 17:04
15 lines
1500 bytes
Jeff Douglass wrote:
> In bcb 5pro app I use a couple of packages I created to provide most of the
> app's features. What is the easyest way during the apps runtime to find out
> where the packages are located so I can get the version info from them to
> display in the about box just like in the about box for MS Outlook express.

Maybe something like:

  char buffer[MAX_PATH];
  HMODULE mod = GetModuleHandle("vcl50.bpl");  // or what have you
  if(mod)
    {
      GetModuleFileName(mod, buffer, MAX_PATH);
      ShowMessage(buffer);
    }
Technical Details
Message-ID: <3e7de977@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e7b9e13@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a39b77bd98d82ce7,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-23 22:57:29 PST
From: "Fishface" <invalid@ddress.ok?>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e7b9e13@newsgroups.borland.com>
Subject: Re: How to get a package's location?
Date: Sun, 23 Mar 2003 09:04:54 -0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 209.102.125.169
Message-ID: <3e7de977@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048439159 209.102.125.169 (23 Mar 2003 09:05:59 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail