Have VS always compile a file
If you want the program to always show the build time, you usually use the following methods:
Const char* LBuildStamp::getBuildDateTime ()
{
Return _ DATE__ "" _ _ TIME__
}
This is not enough, because the compiler will not compile the file again unless clean build, so it always gets the time when the file was last compiled.
You can have vs always compile the file by deleting the obj file corresponding to the source file before it is generated. As shown below: