Output compile time stamp in Visual C++ executable?

前端 未结 6 956
借酒劲吻你
借酒劲吻你 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 02:59

    Visual C++ also supports __TIMESTAMP__ which is almost exactly what you need. That being said, the tough part about build timestamps is keeping them up to date, that means compiling the file in which __TIMESTAMP__ is used on every rebuild. Not sure if there's a way to set this up in Visual C++ though.

提交回复
热议问题