compatibility issues between VS2003 and Win7

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.