Article View: borland.public.cppbuilder.nativeapi
Article #4294Re: GetEnvironmentVariable
From: Joanne
Date: Wed, 08 Feb 2006 08:03
Date: Wed, 08 Feb 2006 08:03
26 lines
1761 bytes
1761 bytes
"Ed Mulroy" <dont_email_me@bitbuc.ket> wrote:
>I cannot find any message in this thread where you showed the text of the error message or the text of the code.
The code fragment is as follows:-
AnsiString Name;
Name = GetEnvironmentVariable("USERNAME");
The error message is:-
[Linker Error] Unresolved external '__fastcall
Sysutils::GetEnvironmentVariableA(const System::AnsiString)'
referenced from C:\DOCUMENTS AND SETTINGS\MY
DOCUMENTS\MYFILE.OBJ
I am using Borland 6 Professional,
the description of the routine in Borland is that it is in the
SysUtils unit, defined as follows:-
extern PACKAGE AnsiString__fastcall GetEnvironmentVariable
(const AnsiString Name);
Technical Details
Message-ID:
<43e9b3ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.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>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.238.90 References: <43e73992$1@newsgroups.borland.com> <cv5fu1d1ie53p85obhag3mhcojeo0qlpct@4ax.com> <43e872ec$1@newsgroups.borland.com> <43e89e85$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43e9b3ee$1@newsgroups.borland.com> Date: 8 Feb 2006 01:03:42 -0700 X-Trace: newsgroups.borland.com 1139389422 207.105.83.66 (8 Feb 2006 01:03:42 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail