🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetEnvironmentVariable

#4306
From: Ed Mulroy
Date: Wed, 08 Feb 2006 23:32
20 lines
1872 bytes
It comes out as GetEnvironmentVariableA because you included windows.h (or 
one of the derivative Windows header files) and the macro changed the name. 
You should be including vcl.h, not windows.h.

.  Ed

> Joanne wrote in message
> news:43ea18ba$1@newsgroups.borland.com...
>
>>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: <43ea7ec4$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.agarik.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
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> <43ea18ba$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: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
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> <43ea18ba$1@newsgroups.borland.com>
Subject: Re: GetEnvironmentVariable
Date: Wed, 8 Feb 2006 18:32:48 -0500
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 66.57.117.102
Message-ID: <43ea7ec4$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139441348 66.57.117.102 (8 Feb 2006 15:29:08 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.agarik.com!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail