|
From: Glenn M. <g_...@ze...> - 2002-10-28 20:44:22
|
On Mon, Oct 28, 2002 at 12:12:39PM -0800, Chris Danford wrote: > - Drop in this CString-clone > (http://www.codeproject.com/string/stdstring.asp) Just change the #if 0 in stdafx.h to 1 ... > - Change all instances > of "ssprintf("%s",str)" to "ssprintf("%s",str.c_str())" I'd suggest changing it to GetString(). That way we can always switch back to CString, which will be useful until we're ready to start doing away with StdCString, too. There's code in StdAfx.h to make sure GetString() is available on VC6 (it's a VC7 addition) for just this reason. This'll let us reach stability with StdCString a bit more gracefully. (This is really annoying to do, actually. GCC warns if you pass an object through '...'--it's illegal--but VC does not, so there's no quick way to find out if we've missed any.) I might see how close we are to compiling in mingw. I've heard it can compile D3D apps. It might have trouble with some of the weirder DShow COM stuff, but if it compiles at all it might be useful to use as a lint; to get the above warning, for example. > - Replace MFC's ASSERT() with libc's assert() We're using a different assert anyway; look in RageException.h, if I remember correctly. It's still Win32-specific (since the crash code is Win32-specific), but it's not MFC. -- Glenn Maynard |