CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Location
    NY, USA
    Posts
    191

    [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

  2. #2
    Join Date
    Apr 2007
    Posts
    162

    Re: COleDateTime Problems

    Try CTime

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: COleDateTime Problems

    Quote Originally Posted by Learned View Post
    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.

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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
  •  





Click Here to Expand Forum to Full Width

Featured