This is probably going to sound like a total noob question, but why doesn’t the sprintf command work with the CSDK?
I included the library, so it should work. Is there possibly a setting I forgot to check in VS?
It works, sounds like a VS thing. I use it for debug stuff all the time.
#ifdef _DEBUG #include "Windows.h"#include <stdio.h>#endif...#ifdef _DEBUG char temp; sprintf_s(temp, 80, "releasing 0x%x used by 0x%x on thread 0x%x\n\0", &element;.element, usedBy, GetCurrentThreadId()); OutputDebugStringA(temp);#endif
Digital Carvers Guild
Plug-ins for Carrara and LightWave
Oh, just noticed, i’m using sprintf_s.
Actually I just noticed what’s wrong from the code you posted. I completely forgot to include “windows.h”!
1-(800) 267-5170 | 1-(801) 495-1777
224 South 200 West #250, Salt Lake City, UT 84101 USA
DAZ is a Registered Trademark of DAZ Productions, Inc.
© 2012 DAZ Productions, Inc., dba DAZ 3D. Terms of Service
Here's a Badge Just for You!
Use this in your forum signatures, email messages, or anything else you can come up with!