MFC 7 ColeDateTime::GetAsDBTIMESTAMP Method not accessible in Unmanaged Code

  • Thread starter Thread starter AST
  • Start date Start date
A

AST

Hey,

Can anybody tell me why the ATL::ColeDateTime implementation is referenced
rather than the MFC implementation? The method GetAsDBTIMESTAMP(...) is
only available on the MFC implementation and not ATL. Is there a compiler
directive or switch or namespace that I am missing that precludes this?

Best regards,

Bill
 
AST said:
Hey,

Can anybody tell me why the ATL::ColeDateTime implementation is
referenced rather than the MFC implementation?

Referenced by what?
The method
GetAsDBTIMESTAMP(...) is only available on the MFC implementation and
not ATL. Is there a compiler directive or switch or namespace that I
am missing that precludes this?

You need to supply some context - what's forcing you to use the ATL
implementation?

-cd
 
Hey,

I was trying to use this COleDateTime method within a MFC CDialog class.
This is an existing VC6 class being ported to VC7 as unmanaged code that was
using references to the old MFC ColeDateTime class, but I wanted to make use
of this new method. So the context is clearly MFC, but when compiling, it
complains that this method does not exist on ATL::ColeDateTime.

Best regards,

Bill
 
Back
Top