After using vs2003 to generate a file at work, click "debug" or "execute" to continuously prompt questions such as "expired, whether to generate again.
At that time, the function I wanted to implement was related to "time". During debugging, I did not know that the time was adjusted to tomorrow, but I did not know that I copied a code, or modified the code. After implementing the Code, call back the time. After "generate solution", the system prompts that the Code has expired. clicking "regenerate solution" is useless. At that time, I didn't think it was a problem with the file modification time. I tried to restart my computer and it was useless.
Then, I found that every time I click to generate a solution, only one file is compiled (if it is not "regenerate the solution", vs2003 only compiles the modified file, it's okay if you replace a CPP)
Later, I thought about the "last modification time" problem of the CPP file. Every time vs2003 clicks "generate solution" or "debug ", determine whether the last modification time of each "CPP file" is earlier than the "last modification time" of PDB (remember PDB), or re-compile the file.
Changed the system time to the future. CPP "after this file,". CPP "the" last modification time "of this file will be later than the last modification time of PDB no matter how it is compiled. Of course, it will continuously prompt" expired.
The solution is simple. Open "A. cpp" and add a space at will to change the last modification time.