Re: CString



On Tue, 13 Jun 2006 22:25:36 -0400, "Steve Russell"
<srussell@xxxxxxxxxxxxxxxxxxxxxx> wrote:

When I declare a CString locally,

CString s;

is it overkill to use

s.Empty(); ?

Yes. You can't make it any emptier than it starts out.

--
Doug Harrison
Visual C++ MVP
.



Relevant Pages

  • Re: function-level linking
    ... Doug Harrison wrote: ... which complains about libraries that are ultimately discarded, ... so at least it'll stop bugging you with the warning. ... Microsoft MVP - Visual C++ ...
    (microsoft.public.vc.language)
  • Re: Compiler optimization (VS6) speed vs size
    ... Doug Harrison wrote: ... VS6 compiler optimizations being "safer" than the ... Optimize for size is the safer. ... Visual C++ MVP ...
    (microsoft.public.vc.mfc)
  • Re: Modifying Windows Logon
    ... Doug Harrison wrote: ... I have look for some references on the internet about how to modify the ... The Essentials of Replacing the Microsoft Graphical Identification and ... Visual C++ MVP ...
    (microsoft.public.vc.mfc)
  • Re: File Version without GetFileVersionInfo
    ... Doug Harrison [MVP] wrote: ... No, it does not, at least not with EXEs. ... we have to make a function that'll access the version info resource by its module handle (basically all that GetFileVersionInfo does, ...
    (microsoft.public.vc.mfc)
  • Re: Using a timer/interrupt
    ... Doug Harrison wrote: ... >this will work without volatile. ... I'm assuming the code path doesn't violate any of the rules upon which ... Microsoft MVP - Visual C++ ...
    (microsoft.public.vc.language)