_vscprintf help

I'm trying to make a printf like function for writing output to a log file. I was looking at MSDN for some help and found the _vscprintf function for making the buffer large enough to hold the data. It says it's in stdio.h, but my stdio.h does not have that function. I've searched the entire include folder for the function and found nothing except for one in the platform sdk for win64 stuff. I'm using Visual C++ 6.0. Has anyone else had a problem like this? Any ideas on how to get it working? Anything would be appreciated.
VeratilAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
efnConnect With a Mentor Commented:
Although Microsoft says that function is in all versions of the C run-time libraries (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/vclrf_vscprintf_vscwprintf.asp), it was new in the .net release.  So you will need to upgrade your compiler or use a different technique.  I don't have any idea better than scanning the string adding up estimates of sizes of the parts.

--efn
0
 
VeratilAuthor Commented:
:( I see... Well thank you for the quick answer. I'll just have to get .NET then. Thanks!
0
All Courses

From novice to tech pro — start learning today.