> > Truckle, Andrew J wrote: > > > As I do for the Cstring Format command, I just passed the > > ID_XXXXXXXX > > > constant... > > > > I don't see why the compiler would want to get confused with > > that, but something along the lines of UINT( ID_XXXX ) should > > make the confusion go away.
Sorry to come into this late, but the reason is because COleDateTime::Format() also has an overload that takes a DWORD and a defaulted second param. Thus, when using a defined constant, it doesn't know whether you mean the UINT version or the DWORD version. As Ehsan rightly commented, using dateTimeVar.Format( (UINT)ID_XXX) will cure that, since it clearly shows the compiler which overload you intended. -- Jason Teagle [EMAIL PROTECTED] _______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
