PDA

View Full Version : erro while compiling with sprintf_instead_use_StringCbPrintfA_or_StringCchPr intfA



vdaanen
July 25, 2007, 10:45:28
Hi,

I'm trying to compile the VideoNomFormat sample app but the compiler complains because :


c:\program files\microsoft visual studio\vc98\include\xlocnum(481) : error C2065: 'sprintf_instead_use_StringCbPrintfA_or_StringCchP rintfA' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xlocnum(479) : while compiling class-template member function 'class std::ostreambuf_iterator<char,struct std::char_traits<char> > __thiscall std::num_put<char,class std::ostreambuf_itera
tor<char,struct std::char_traits<char> > >::do_put(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,long) const'
c:\program files\microsoft visual studio\vc98\include\xlocnum(481) : error C2143: syntax error : missing ')' before ';'

I did a google search and I saw it is related to DirectShow but I can figure out on how to solve this error.

Does someone know ?

Edit : I'm using VC++ 6.0 with the latest SP, Windows XP SP2 and "Microsoft Platform SDK for Windows Server 2003 R2"

Thanks for help

Vince

Stefan Geissler
July 25, 2007, 11:04:06
Hi Vince,

I suppose use use VC++ 6.0 with the lastest DirectShow SDK. In this case add to your stdafx.h:



#define NO_DSHOW_STRSAFE

If hope this helps. As far as I know, the Microsoft support for Visual Studio 6 has ended.

vdaanen
July 25, 2007, 11:08:14
Hi Stefan,

thanks, it compiles.

V