CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    22

    !! compile time !!



    Anyone know how to get the time an executable was compiled into a static text control? I'd like my about box to display the time the thing was built. I'm not sure whether this would be compile-time or runtime, or how to do it.


    Thanks in advance,

    Chris

  2. #2
    Join Date
    Apr 1999
    Posts
    24

    Re: !! compile time !!



    Try using __DATE__ and __TIME__ . These macros are strings representing the date and time (respectively!) of the compilation of the file they are contained in.

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