visual-studio-2012

Visual Studio 2012 Search Scope

人走茶凉 提交于 2019-12-23 09:34:43
问题 Visual Studio 2012 Quick Find Dialog Is there a shortcut, or a way to make one, for changing search scope in Visual Studio 2012? The new quick search dialog was redesigned, and it is very clunky to get to search scope via the tab key, as the initial keyboard focus is in the first textbox and the scope dropdown was moved relatively far away. In Visual Studio 2010, it was as simple as hitting the tab key once and you're there. Visual Studio 2012 Quick Find Dialog 回答1: Mr. President, you can

expression template - decorated name length exceeded

北城余情 提交于 2019-12-23 09:33:37
问题 I get a "Decorated name length exceeded" warning from my code I've looked at the SO answers to similar questions. *N.B. I know how to turn this off (pragma), I also know that it is a warning I can "ignore" and that unix based compilers may not emit it :P * There is a practical element to this question , If I get errors I do have to wade through some pretty horrendous text and templates. These errors are mostly due to typos currently, but if I had anything subtle it would be a nightmare to

Visual Studio 2012 - “Error Access is denied” message box - no other information

久未见 提交于 2019-12-23 09:27:40
问题 I occasionally get an error when I am using Visual Studio 2012. The error (below) gives me almost no information about what has gone wrong. It seems that the error is related to source control in some way as I usually get the error when alter a file (and the file gets auto-checked out) or add something new. Other than the error message, nothing appears to be going wrong - source control checks out files for me and I can write to the checked out file. I have checked in the output window and

Best practice for using the 'volatile' keyword in VS2012

邮差的信 提交于 2019-12-23 09:18:34
问题 Since upgrading our development and build environments from VS2008 to VS2012, I am confused about the implications of using the volatile keyword in our legacy codebase (it's quite extensive as there is a much copied pattern for managing threads from the "old" days). Microsoft has the following remarks in the VS2012 documentation: If you are familiar with the C# volatile keyword, or familiar with the behavior of volatile in earlier versions of Visual C++, be aware that the C++11 ISO Standard

Stack Empty Exception

本小妞迷上赌 提交于 2019-12-23 09:16:29
问题 I am getting a stack empty exception. How is that possible if the stack is not empty (it has 16 items)? I got a snap shot of the error: Can someone please explain? 回答1: You must synchronize access when using something like Stack<T> . The simplest approach is to use lock , which then also let's you use the lock for the synchronization itself; so pop would be: int item; lock (SharedMemory) { while (SharedMemory.Count == 0) { Monitor.Wait(SharedMemory); } item = SharedMemory.Pop(); } Console

can not hit breakpoint inside of .js file

江枫思渺然 提交于 2019-12-23 09:12:04
问题 I upgraded to win 8. Now I run my VS 2012 under admin privileges and I'm creating a website in MVC 4. I checked different solutions online and none have worked. I have a javascript file in my solution but when I put a breakpoint in it, at runtime I see "no symbols have been loaded for this document". I had this issue couple years back with VS 2008 and somehow it resolved. I don't remember if I did change anything at all. Now it's back! except i'm not on win XP and VS 2008. the .pdb files are

Converting MSVS 2010 project to MSVS 2012 RC but get error “The C++ standard doesn't provide a hash for this type”

南楼画角 提交于 2019-12-23 09:11:59
问题 I have a project working fine under MSVS 2010 SP1. I'm trying to convert it to MSVS 2012 RC. I had to change some stuff, mainly related to C++ header/lib paths and MFC custom stuff. But I have one last hurdle to clear. In MSVC 2010, I'm using a lot of unordered_map<basic_string<TCHAR>, int> or map<basic_string<TCHAR>, int> . It compiles fine. But in MSVS 2012, I just get this error: "The C++ standard doesn't provide a hash for this type" After searching a bit on the net, I found out that MSVS

share connectionstrings with multiple projects in same solution

狂风中的少年 提交于 2019-12-23 09:10:59
问题 I have multiple projects in the same solution. I would like them to share the same connectionStrings so that I don't have to change the this in multiple places. In my web configs I have <connectionStrings configSource="bin/connectionStrings.config" /> and then I have added a file as a link to my "connectionsStrings.config" which sits at the solution level. I have changed the properties so that the "Copy to Output Directory" is "Copy always" and the "Build Action" is "Content" But I get the

“Visual Studio Extensions for Windows Library for Javascript” Won't Update

家住魔仙堡 提交于 2019-12-23 09:06:26
问题 Pounding on the update button in this screenshot does nothing. Nothing is downloaded, installed, etc. No message, nothing at all! Clicking "Release Notes" and "More Information" also does nothing. Searching for this update yields nothing useful, too. What ever shall I do? 回答1: Is Google Chrome your default browser by chance? I see the same behavior in that case, but not when IE or Firefox is. What Wade suggested earlier is precisely the file that pressing that button would have downloaded for

Navigation bar gone since VS 11 install [closed]

痞子三分冷 提交于 2019-12-23 09:06:01
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I have a solution that I still run in VS 2010. After opening the solution in VS2010 after install of Visual Studio 11 I noticed that the navigation bar