Article View: borland.public.cppbuilder.nativeapi
Article #14379Re: Temp Directory
From: Remy Lebeau (TeamB)
Date: Mon, 18 Aug 2003 23:09
Date: Mon, 18 Aug 2003 23:09
27 lines
1578 bytes
1578 bytes
"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message
news:3f4148c3$1@newsgroups.borland.com...
> char Buffer[MAX_PATH];
>
> char* p = Buffer;
>
> GetTempPath(sizeof(Buffer), p);
>
> ShowMessage(String(p));
You don't need to use a separate pointer, you can use the buffer directly:
char Buffer[MAX_PATH + 1] = {0};
GetTempPath(MAX_PATH, p);
ShowMessage(p);
Gambit
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/03
Technical Details
Message-ID:
<3f415b0f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<s4h2kv4e2lb771e0d7b5e82gsge972j8aq@4ax.com> <3f4148c3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8f9ea338f8951dfc X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-18 16:11:09 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <s4h2kv4e2lb771e0d7b5e82gsge972j8aq@4ax.com> <3f4148c3$1@newsgroups.borland.com> Subject: Re: Temp Directory Date: Mon, 18 Aug 2003 16:09:26 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f415b0f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061247759 207.175.226.26 (18 Aug 2003 16:02:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail