[RESOLVED] COleDateTime Problems
I am trying to implement a simple test routine and I have already included the headers:
Code:
#include<ATLComTime.h>
#include<atltime.h>
but when I still get the error: "Identifier not found" with the following definition:
Code:
Ctime t1, t2; //error is "identifier ctime is undefined"
COleDateTime.mytime(1996,1,1,0,0,0); //error - ATL::ColedateTime has no member mytime
Re: COleDateTime Problems
Re: COleDateTime Problems
Quote:
Originally Posted by
Learned
I am trying to implement a simple test routine and I have already included the headers:
Code:
#include<ATLComTime.h>
#include<atltime.h>
but when I still get the error: "Identifier not found" with the following definition:
Code:
Ctime t1, t2; //error is "identifier ctime is undefined"
COleDateTime.mytime(1996,1,1,0,0,0); //error - ATL::ColedateTime has no member mytime
The compiler is right. COleDateTime.mytime, there is no mytime member. And as zapper222 mentioned, remember C++ is case sensitive.
Re: [RESOLVED] COleDateTime Problems
Most probably it's just a mistyping. The guy put a dot (which makes no sense, as COleDateTime is a type but not a variable) instead of space. :)
Code:
COleDateTime mytime(1996,1,1,0,0,0);