Support Board
Date/Time: Thu, 13 Feb 2025 22:51:17 +0000
[User Discussion] - Error C2664 in DATETIME_TO_YMDHMS_MS
View Count: 672
[2020-12-28 09:01:31] |
User210074 - Posts: 63 |
Hello, I have a problem with one of my cpp that worked before. int IYear{},IMonth{},IDay{},IHour{},IMinute{},ISecond{},IMilliSecond{}; //... SCDateTime TDT = TC[Ia].DateTime; TDT += sc.TimeScaleAdjustment; DATETIME_TO_YMDHMS_MS(TDT,IYear,IMonth,IDay,IHour,IMinute,ISecond,IMilliSecond); //... error message D:\SierraChart\ACS_Source\test.cpp(298): error C2664: 'void DATETIME_TO_YMDHMS_MS(int64_t,int &,int &,int &,int &,int &,int &,int &,const bool)': cannot convert argument 1 from 'SCDateTime' to 'int64_t' D:\SierraChart\ACS_Source\test.cpp(298): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Has SCDateTime changed? It is no longer an int64_t! |
[2020-12-28 09:57:03] |
User210074 - Posts: 63 |
I understood now. I just looked on the ASCIL DATETIME_TO_YMDHMS_MS manual no longer exists. I need to replace it with name.GetDateTimeYMDHMS_MS. It works now. Sorry for the post. |
To post a message in this thread, you need to log in with your Sierra Chart account: