Article View: borland.public.cppbuilder.nativeapi
Article #8928Re: GetTextMetrics
From: Remy Lebeau (TeamB)
Date: Sun, 05 Sep 2004 09:07
Date: Sun, 05 Sep 2004 09:07
18 lines
1304 bytes
1304 bytes
"LarryJ" <LarryJ33@ev1.net> wrote in message
news:413ac2b6@newsgroups.borland.com...
> Do I need a corresponding delete for the "new TTextMetric"
Yes. However, you don't need to use 'new' to begin with:
TEXTMETRIC Tm = {0};
GetTextMetrics(hdc, &Tm);
> or will this delete automatically?
No, anything allocated with 'new' must be freed by explitically calling
'delete'.
Gambit
Technical Details
Message-ID:
<413ad6e3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<413ac2b6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e32ca978f58df0ab 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: <413ac2b6@newsgroups.borland.com> Subject: Re: GetTextMetrics Date: Sun, 5 Sep 2004 02:07:15 -0700 Lines: 20 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: <413ad6e3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094375139 68.69.17.41 (5 Sep 2004 02:05:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail