🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: detect software directory

#2982
From: Remy Lebeau (TeamB)
Date: Thu, 26 Oct 2006 18:52
11 lines
1147 bytes
"Renan" <nospam_dot_gulbrrs@gmail_dot_.com> wrote in message
news:4540e7c1$1@newsgroups.borland.com...

> How do I detect the directory of the software I'm running
> ( I want this software to detect its own directory)

Call GetModuleFileName() and then strip off the filename portion.


Gambit
Technical Details
Message-ID: <4541047a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4540e7c1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e49c98fa00ce3be2
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4540e7c1$1@newsgroups.borland.com>
Subject: Re: detect software directory
Date: Thu, 26 Oct 2006 11:52:55 -0700
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <4541047a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1161888890 69.169.4.232 (26 Oct 2006 11:54:50 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail