|
-
October 28th, 2011, 09:09 AM
#1
[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
-
October 28th, 2011, 09:58 AM
#2
Re: COleDateTime Problems
-
October 28th, 2011, 11:25 AM
#3
Re: COleDateTime Problems
 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.
-
October 29th, 2011, 01:33 AM
#4
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);
Last edited by Igor Vartanov; October 29th, 2011 at 01:37 AM.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|