visual-studio-2005

VS 2005 Test Project Not Opening

依然范特西╮ 提交于 2020-01-15 06:27:25
问题 I'm trying to open a VS 2005 solution which includes a VS2005 Test project. When the solution is opened, all projects apart from the Test project are loaded. When I try to load the Test project, I get the following error: The project type is not supported by this installation My VS instance: Visual Studio 2005 Professional Version 8.0.50727.762 (SP .050727-7600) Thanks a lot in advance 回答1: VS 2005 Professional did not support Test projects (VS 2008 Pro does support Test projects). For VS

Build Incrementally in VS 2005

丶灬走出姿态 提交于 2020-01-15 05:59:30
问题 We have a 50 projects solution in VS 2005. Is any way to get incremental build if nothing was changed? It is kind of doing it now, but it executes all prebuild and post build events for each project. Is any way to prevent it? 回答1: Have a look at the Build Events tab. Notice the dropdown at the bottom that says Run the post-build event: . Does it say "On successful build"? Try changing it to "When the build updates the project output". 回答2: Visual studio does what you describe by default,

How do I change the Report Designer Ruler unit from Inches to centimetres?

≯℡__Kan透↙ 提交于 2020-01-14 13:07:03
问题 A simple (I hope) question, I'm using Visual Studio, I create a new report in SQL Server Business Intelligence Development Studio. In layout view the ruler is in inches, I would like to change it to centimetres. Update 1 Changing the regional settings worked. Is it not possible to do this without changing the regional settings? I would have hoped this would be a setting within Visual Studio. 回答1: Try the Windows Regional Settings? 回答2: Not sure how to set this in BIDS, but if you open the RDL

C++ code performance

馋奶兔 提交于 2020-01-14 03:44:06
问题 When is about writing code into C++ using VS2005, how can you measure the performance of your code? Is any default tool in VS for that? Can I know which function or class slow down my application? Are other external tools which can be integrated into VS in order to measure the gaps in my code? 回答1: If you have the Team System edition of Visual Studio 2005, you can use the built-in profiler. http://msdn.microsoft.com/en-gb/library/z9z62c29(VS.80).aspx 回答2: AMD CodeAnalyst is available for free

Task failed because “LC.exe” was not found after upgrade to Windows 8.1

回眸只為那壹抹淺笑 提交于 2020-01-14 01:43:28
问题 i have an error building my Visual Studio 2005 after i upgrade my windows 8 to windows 8.1 here's the error. Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed. The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework

How to use struct as key in std::map

点点圈 提交于 2020-01-13 09:53:50
问题 I want to use a std::map whose key and value elements are structures. I get the following error: error C2784: 'bool std::operator <(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'const GUID I understand that I should overload operator < for that case, but the thing is I don't have access to the code of the structure I want to use ( GUID structure in VC++). Here's the code snippet:

How to use struct as key in std::map

…衆ロ難τιáo~ 提交于 2020-01-13 09:52:10
问题 I want to use a std::map whose key and value elements are structures. I get the following error: error C2784: 'bool std::operator <(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'const GUID I understand that I should overload operator < for that case, but the thing is I don't have access to the code of the structure I want to use ( GUID structure in VC++). Here's the code snippet:

Speed up compilation in Visual Studio 2005

喜欢而已 提交于 2020-01-13 02:55:15
问题 What are the best ways to speed up compilation time in Visual Studio 2005 for a solution containing mainly C++ projects? 回答1: Besides pre-compiling headers, there are number of other things that could be slowing you down: Virus checking software - can have a nasty impact on builds. If you have a virus checker running try to turn it off and see what sort of improvement you get. Low RAM - Not enough RAM will cause many more disc reads and slow you down. cont -> Slow HDD - You have to write to

Release resources when stop debugging

允我心安 提交于 2020-01-11 12:16:58
问题 I use Visual Studio 2005 & C#. In my FormClosing event I release some resources, that my application uses. But when I debug it and decide to stop (Stop debugging), than FormClosing event doesn't fire and my resources aren't properly released. How can I avoid this? 回答1: If you by "resources" mean things like open handles and allocated memory, you shouldn't worry. The OS will release this as the process terminates. If you mean things like temporary files, registry keys, or other things that are

Disabling or making it readonly a part of the values in a Text Box (.net)

不想你离开。 提交于 2020-01-11 10:37:10
问题 I have a textbox (multiline) which has initial value, now when user tries to append values to it, he should not be able to modify the initial value. Is it possible in any way. -Anil 回答1: So if you have "lorem ipsum" in the box you want the user to be able to add to but not remove that text? If so then with a RichTextBox you can do this via a selection's .SelectionProtected property which will mark a region as effectively being read only. rtBox.Select(0, (rtBox.Text = "I am fixed content")