> 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.

That makes sense.  I understand now.

Andrew


This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding.

_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to