VS2003 does not officially support Win7, at present, we are confronted with two main problems: 1. In the debug, the *.pdb file will be devenv.exe to lock, when adjusted once, then compile the time there will be lnk1201 link error, said to *.pdb no write permission, only restart Vs;2. In the global search (at least the current file search is not a problem), the entire VS2003 is unresponsive, can only force exit. Workaround: 1. This does not have the simple method or the setting can solve, the online already has the comparison to be able to use the Windows Sysinternals Tool handle (). Download Handle.exe First, and then save the following script as
Freepdb.bat
@echo offcd/d "%~dp0" for/f "tokens=2-3 skip=5 delims=:"%%a in (' Handle-p devenv.exe "%1.pdb" ') Do ( for/f "tokens =1,4 "%%c in ("%%a%%b ") Do ( handle-p%%c-c%%d-y >nul )) exit/b 0
Put the Freepdb.bat file and Handle.exe in the same directory, in VS2003, right-click
project->properties->build events->pre-build Event, enter the following command in command line:
"<freepdb.bat path>" $ (ProjectName)
For example, my freepdb.bat and Handle.exe are placed under D:\, so that is
"D:\freepdb.bat" $ (ProjectName), it is recommended that the path be enclosed in double quotes in case there are spaces. Because Handle.exe requires administrator privileges to run, it is a good idea to set devenv.exe to "run this as a administrator". Online also said to set the XP compatibility mode method, I did not confirm. 2. It is said to be caused by a conflict with the Aero user interface of Win7. I was solved by two steps, do not know whether it is not a step can be. Right-devenv.exe, properties->compatibility, Hook on disable visual themes, OK; Right-click on the desktop, personalize, select Theme as Windows 7 Basic. Hope it helps. That's all.
compatibility issues between VS2003 and Win7