printf deprecated in whidbey

  • Thread starter Thread starter Bonj
  • Start date Start date
B

Bonj

can anyone tell what the equivalent new syntax using the secure CRT would be
for
_TCHAR* thestring = "Hello World";
_tprintf(_T("The string is \"%s\"\n"), thestring);

_tprintf_s ?
I can't get it to work without crashing...
 
Hi Bonj,
can anyone tell what the equivalent new syntax using the secure CRT
would be for
_TCHAR* thestring = "Hello World";
_tprintf(_T("The string is \"%s\"\n"), thestring);

_tprintf_s ?
I can't get it to work without crashing...

For me the following works perfectly:

_TCHAR* thestring = _T("Hello World");
_tprintf_s(_T("The string is \"%s\"\n"), thestring);

With VS2005 Beta1

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top