Output compile time stamp in Visual C++ executable?

前端 未结 6 907
借酒劲吻你
借酒劲吻你 2021-01-04 02:08

How can I insert compilation timestamp information into an executable I build with Visual C++ 2005? I want to be able to output something like this when I execute the progra

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 03:00

    __DATE__ 
    __TIME__
    

    are predefined as part of the standards for C99 so should be available to you. They run once with the preprocessor.

提交回复
热议问题