Article View: borland.public.cppbuilder.nativeapi
Article #17541Get/SetEnvironmentVariable
From: JD
Date: Fri, 14 Mar 2003 04:32
Date: Fri, 14 Mar 2003 04:32
17 lines
1291 bytes
1291 bytes
I'm trying to track a bug and need confirmation that I'm using these API's correctly please: AnsiString oldPath, newPath; GetEnvironmentVariable( "PATH", oldPath, MAXPATH ); newPath = oldPath + ";D:\\Test Folder"; SetEnvironmentVariable( "PATH", newPath, newPath.Length() ); // do my stuff SetEnvironmentVariable( "PATH", oldPath, oldPath.Length() ); TIA ~ JD
Technical Details
Message-ID:
<3e715b74$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e15f2a7df7618bf3,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-13 20:42:51 PST From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Get/SetEnvironmentVariable Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.154.33.171 172.154.33.171 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3e715b74$1@newsgroups.borland.com> Date: 13 Mar 2003 20:32:52 -0800 X-Trace: newsgroups.borland.com 1047616372 207.105.83.65 (13 Mar 2003 20:32:52 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail