Article View: borland.public.cppbuilder.nativeapi
Article #6683Re: Windows System Directory Path
From: Remy Lebeau (TeamB)
Date: Wed, 13 Apr 2005 16:39
Date: Wed, 13 Apr 2005 16:39
17 lines
1259 bytes
1259 bytes
"JBH" <jhanson@ae-solutions.com> wrote in message
news:425d1dc5@newsgroups.borland.com...
> Try this:
Minor change:
char SystemPath[MAX_PATH+1] = {0};
GetSystemDirectory(SystemPath, MAX_PATH);
Edit1->Text = SystemPath;
If the path ever happened to be exactly MAX_PATH characters long, your
buffer would not be null terminated properly.
Gambit
Technical Details
Message-ID:
<425d4ae0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<425d1768@newsgroups.borland.com> <425d1dc5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a0f4443d6894c679 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <425d1768@newsgroups.borland.com> <425d1dc5@newsgroups.borland.com> Subject: Re: Windows System Directory Path Date: Wed, 13 Apr 2005 09:39:55 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <425d4ae0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113410272 68.69.17.41 (13 Apr 2005 09:37:52 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail