🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Start and stop application

#8058
From: Mark Jacobs
Date: Mon, 29 Nov 2004 00:22
26 lines
1869 bytes
As Remy has said, FindExecutable is the correct way to do this. Here is an
example :-

AnsiString get_executable_name(AnsiString fnm)
{
  char appnam[MAXPATH];
  FindExecutable(fnm.c_str(),GetCurrentDir().c_str(),appnam);
  return AnsiString(appnam);
}

which returns the application name for any given filename, or blank if there is
no associated application.

"Alexander Aliev" <ali@isa.ru> wrote in message
news:41a7411f$1@newsgroups.borland.com...
| And also your string
|
| "AcroExch.Document\\protocol\\StdFileEditing\\server"
|
| looks magic. Is it your own practical skill or
| there is a source where I can read about it?

I am getting to know the heart of XP - the registry. What the keys are for and
how they interact - this is a lifetime mission (possibly!).
-- 
Mark Jacobs
Technical Details
Message-ID: <41aa6c06@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41a713ab@newsgroups.borland.com> <41a72ef0@newsgroups.borland.com> <41a7411f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,44eef0c11b4047c0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41a713ab@newsgroups.borland.com> <41a72ef0@newsgroups.borland.com> <41a7411f$1@newsgroups.borland.com>
Subject: Re: Start and stop application
Date: Mon, 29 Nov 2004 00:22:52 -0000
Lines: 27
Organization: DK Computing
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.86.186.94
Message-ID: <41aa6c06@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101687814 81.86.186.94 (28 Nov 2004 16:23:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail