为什么我用CDateTimeCtrl :: GetTime(Ctime& amp;)得到编译错误?????? [英] Why am I getting a compile error with CDateTimeCtrl::GetTime(Ctime&)??????
问题描述
    CTime时间;
m_datectrlStart.GetTime(时间);
CTime time;
m_datectrlStart.GetTime(time);
此代码不会编译到很多参数to CDateTimeCtrl :: GetTime(...)"
This code won't compile "to many parameters to CDateTimeCtrl::GetTime(...)"
为什么???
我读过的这个类的所有文档都说:
All the documentation for this class I have read says this:
BOOL GetTime(
COleDateTime& timeDest
) const;
DWORD GetTime(
CTime& timeDest
) const;
DWORD GetTime(
LPSYSTEMTIME pTimeDest
) const;
那么类的CORRECT文档在哪里?
So where is the CORRECT documentation for the class????
推荐答案
检查 m_datectrlStart 的定义。它是
CDateTimeCtrl 吗?在Visual Studio 2015中,选择 m_datectrlStart 或
GetTime 并按< F12>。
Check the definition of m_datectrlStart. Is it a CDateTimeCtrl? In Visual Studio 2015, select m_datectrlStart or GetTime and press <F12>.
这篇关于为什么我用CDateTimeCtrl :: GetTime(Ctime& amp;)得到编译错误??????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!