Re: _stprintf

Tech-Archive recommends: Fix windows errors by optimizing your registry



That's 'deprecated', not 'decremented'. If you include strsafe.h it redefines all the
obsolete and unsafe methods to issue error messages.
joe

On Sat, 29 Jul 2006 19:04:01 -0700, Sonu <sonu@xxxxxxxxxxxxx> wrote:

Thanks guys,
I must be spacing out (as I seem to have been doing that often these days)
when I was using that %a instead of %c.
Definitely want to move to CString.... Though I'll have sit down and go
through my whole project and replave all this char stuff...
It's also giving the decremented error everywhere all over in VC2005, so now
I have a good excuse to use CString everywhere!

Thanks a bunch as ususal...

"David Webber" wrote:


"Vipin" <Vipin@xxxxxxxxxx> wrote in message
news:uxxt2Y1sGHA.4080@xxxxxxxxxxxxxxxxxxxxxxx

Good thing to use is this:-
CString str;
str.Format(_T("%c") , 'a' + j);

Better is

str.Format(_T("%c") , _T('a') + j );

Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm





Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.