Article View: borland.public.cppbuilder.nativeapi
Article #478Re: Cleaning up after using GetDisplayNameOf()
From: Darko Miletic
Date: Thu, 13 Mar 2008 17:20
Date: Thu, 13 Mar 2008 17:20
13 lines
1765 bytes
1765 bytes
Remy Lebeau (TeamB) wrote: > "Darko Miletic" <kiklop@fibertel.com.ar> wrote in message > news:47d92ad2@newsgroups.borland.com... > >> First of all if your app is VCL CoInitialize is not needed. >> By default COM is initialized in VCL app. > > There is no harm in doing it yourself, though. The COM library is reference > counted. As long as all calls to CoInitialize() have balanced calls to > CoUnitialize(), you will be fine. You are right but I was just saying that if it is already there no need to add more code than needed.
Technical Details
Message-ID:
<47d96258$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47d8ec90$1@newsgroups.borland.com> <47d92ad2@newsgroups.borland.com> <47d95ab0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b8d31d04a1ebb7b9 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 13 Mar 2008 15:20:11 -0200 From: Darko Miletic <kiklop@fibertel.com.ar> Reply-To: Darko Miletic <kiklop@fibertel.com.ar> User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Cleaning up after using GetDisplayNameOf() References: <47d8ec90$1@newsgroups.borland.com> <47d92ad2@newsgroups.borland.com> <47d95ab0$1@newsgroups.borland.com> In-Reply-To: <47d95ab0$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080313-0, 13/03/2008), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 200.49.157.165 Message-ID: <47d96258$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1205428824 200.49.157.165 (13 Mar 2008 10:20:24 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1615