为什么我用CDateTimeCtrl :: GetTime(Ctime& amp;)得到编译错误?????? [英] Why am I getting a compile error with CDateTimeCtrl::GetTime(Ctime&)??????

查看:266
本文介绍了为什么我用CDateTimeCtrl :: GetTime(Ctime& amp;)得到编译错误??????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

    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; amp;)得到编译错误??????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆