Article View: borland.public.cppbuilder.nativeapi
Article #4300Re: GetEnvironmentVariable
From: Joanne
Date: Wed, 08 Feb 2006 15:13
Date: Wed, 08 Feb 2006 15:13
16 lines
1502 bytes
1502 bytes
"Ed Mulroy" wrote: >The function prototype calls for an AnsiString by value and the code passes >it a char* literal. > >See if this works: > > Name = "USETNAME"; > Name = GetEnvironmentVariable(Name); Still no joy. I notice that the linker error references GetEnvironmentVariableA whereas my code calls GetEnvironmentVariable - I don't understand this? I can use the Win API version of the function, so it is no hassle, but interesting why it doesn't work!
Technical Details
Message-ID:
<43ea18ba$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43e73992$1@newsgroups.borland.com> <cv5fu1d1ie53p85obhag3mhcojeo0qlpct@4ax.com> <43e872ec$1@newsgroups.borland.com> <43e89e85$1@newsgroups.borland.com> <43e9b3ee$1@newsgroups.borland.com> <43ea0320$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de09e7ac5120cd9c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Joanne" <jo.bullock@tiscali.co.uk> Sender: "Joanne" <jo.bullock@tiscali.co.uk> Reply-To: "Joanne" <jo.bullock@tiscali.co.uk> Subject: Re: GetEnvironmentVariable Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.47.135.7 References: <43e73992$1@newsgroups.borland.com> <cv5fu1d1ie53p85obhag3mhcojeo0qlpct@4ax.com> <43e872ec$1@newsgroups.borland.com> <43e89e85$1@newsgroups.borland.com> <43e9b3ee$1@newsgroups.borland.com> <43ea0320$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43ea18ba$1@newsgroups.borland.com> Date: 8 Feb 2006 08:13:46 -0700 X-Trace: newsgroups.borland.com 1139415226 207.105.83.66 (8 Feb 2006 08:13:46 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail