🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #235

Re: System.getenv() problem

#235
From: Oliver
Date: Thu, 02 Mar 2006 14:57
25 lines
1603 bytes
Hi

the doc says

HINSTANCE ShellExecute(
    HWND hwnd,	// handle to parent window
    LPCTSTR lpOperation,	// pointer to string that specifies operation to perform
    LPCTSTR lpFile,	// pointer to filename or folder name string
    LPCTSTR lpParameters,	// pointer to string that specifies executable-file parameters 
    LPCTSTR lpDirectory,	// pointer to string that specifies default directory
    INT nShowCmd 	// whether file is shown when opened
   );

at the moment im using

 NewInstance := ShellExecute(Application.Handle,'open',
    pchar(CfgInfo.RemotePath),'',NIL, SW_SHOWNORMAL);

Do i need the defaut directory perhaps?!
pchar(CfgInfo.RemotePath) is the path to my Java executable.

regards

Oliver
Technical Details
Message-ID: <440715f2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44070483$1@newsgroups.borland.com> <44070700$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,a9217b09f375ec94
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Oliver" <o.maas@nospam_metrohm.de>
Sender: "Oliver" <o.maas@nospam_metrohm.de>
Reply-To: "Oliver" <o.maas@nospam_metrohm.de>
Subject: Re: System.getenv() problem
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 81.90.37.2     
References: <44070483$1@newsgroups.borland.com> <44070700$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <440715f2$1@newsgroups.borland.com>
Date: 2 Mar 2006 07:57:38 -0700
X-Trace: newsgroups.borland.com 1141315058 207.105.83.66 (2 Mar 2006 07:57:38 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail