CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Build date and time

  1. #1
    Join Date
    Aug 2000
    Posts
    18

    Build date and time

    Is there any way to get access to the time a build takes place? Not the date or time stamp for a particular source module, but the time of the most recent change to any source that went into the link or the time of the link edit.


  2. #2
    Join Date
    Aug 1999
    Location
    Memphis, TN, USA
    Posts
    159

    Re: Build date and time

    I don't believe that functionality is intrinsic to VC++. However, there are plenty of ways to keep track of this...


  3. #3
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: Build date and time

    There are __DATE__ and __TIME__ predefined ANSI C macros.
    (The most recent compilation date and time of the current source file)

    You can use them to initialize your static variables.
    I am not aware af anything like that in the linker.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I do not do it for the rating. Oh, wait...
    Sure, I do!
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)