The performance of this problem is: After vs2003 compiled once, and then compile the run, you will be prompted: LNK1201: Write to the program database "d:\xxxx\xxxx.pdb" error; Please check if there is insufficient disk space, invalid path, or insufficient permissions. Why this error, there is no need to delve into, anyway know is because vs2003 in Win7 under incompatible produced (here very want to vomit trough once, all use Win7, also use what vs2003~~~).
I only knew this mistake when I first used the company's vs2003, and then an old programmer sent me a freepdb.bat, put it in Vc7/bin, and wrote it in the pre-build event of the project properties: Freepdb $ (tagetdir) $ (TargetName ). pdb. And then started several times, can normal, and then produced this problem, asked the programmer why, he said not very clear, never asked me whether I have solved (spit groove: Or take my master, nothing is also drunk, this problem pits me for a long time, of course, but also did not take the initiative to ask other programmers ~ ~). In fact, this is because the system does not handle.exe this thing, put it in and freepdb.pdb a directory on the line.
Here is my own use of the code inside the freepdb.pdb, according to their own circumstances can be flexibly changed:
cd/d"%~dp0" for/F"tokens=2-3 skip=5 delims=:"%%ainch('handle-p devenv.exe "%1"') Do ( for/F"tokens=1,4"%%cinch("%%a%%b") Do(Handle-P%%c-c%%d-y >NUL)) Exit/b0
About the specific meaning of the code, I did not look closely, after all, there is little opportunity to use, and so there is time to study the syntax of the. bat preprocessing file.
In addition, oneself is too not active to solve the problem, in fact, as long as to ask other programmers can solve, will not be so used for a few months of vs2003, each recompile to restart VS, how much time wasted ah ~~~~~~~
About Win7 under vs2003 incompatibility problem