visual-studio-2012

What is the difference between the LIB and LIBPATH environment variables for MS Visual C/C++?

大憨熊 提交于 2019-12-18 11:44:40
问题 I've been working on some build scripts, and this is bugging me. I want to be sure that we're independent of environment settings, but in order to be sure of that I feel a need to understand how/where the settings are used by the tools. The Visual Studio command prompt and/or vcvarsall.bat file set up two distinct environment variables: LIB and LIBPATH. The values are different, but partially overlapping. Here are the values from my system: LIB=C:\Program Files (x86)\Microsoft Visual Studio

Namespace change - Multiple types were found that match the controller named 'Home'

孤街浪徒 提交于 2019-12-18 11:42:04
问题 I ran into the following problem after changing the namespace for my mvc project: Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter. The request for 'Home' has found the following matching

Open a folder in Visual Studio

人走茶凉 提交于 2019-12-18 11:38:24
问题 I am creating an Angular project but I love the features of Visual Studio 2012. I am looking for an option to open the folder in Visual Studio 2012 (Similar to "Open Folder" option in Sublime text), which will list all the contents of the folder. Currently, I am navigating the files in windows explorer and opening them in Visual Studio as I need them. One of the options I can think of is to create a project (for e.g. Console application) and add these files and folder into that, but I will

Compile C app with Visual Studio 2012

落花浮王杯 提交于 2019-12-18 11:32:19
问题 I plan to write application in C using Microsoft Visual Studio 2012. The problem is that I can't find a way to compile it right in the editor. I found this solution http://msdn.microsoft.com/en-us/library/bb384838.aspx but I dont like it. Can you recommend me a way to compile C program right in the Visual Studio 2012? 回答1: It is a little bit tricky to compile plain C90 and C++x0 (only partially supported) projects in VS2010 (and probably Visual Studio 11, I haven't tried native development in

Compiler error C2653: not a class or namespace name

感情迁移 提交于 2019-12-18 11:21:10
问题 So I have been having this extremely frustrating problem lately with Visual C++ 2012. Up until a few hours ago, I was writing code just fine and everything was working as intended, until I decided to optimize some things and deleted a few classes. I fixed all of the errors that were popping up because of that, e.g. false includes, etc. Unfortunately, after this the VS compiler went crazy. It started giving me errors such as: Error 14 error C2653: 'Class' : is not a class or namespace name or

Initializing std::atomic_bool?

主宰稳场 提交于 2019-12-18 11:18:11
问题 I want to use std::atomic_bool because I want to have a boolean which is supposed to be accessed by different threads. It's a static member Variable. The Problem is that I want to initialize it with false as the first state. Normally I would do it like that: std::atomic_bool World::mStopEvent = false; But the problems seems to be that it doesn't take false as the constructor. So how I am supposed to initialize such a variable? I am using VS 2012. 回答1: This is a known issue in Visual Studio

VS 2012 launching app based on wrong path

那年仲夏 提交于 2019-12-18 11:05:27
问题 I have a app which is under source control (TFS 2012 also) on c:\Dev\MyApp\Main. Because im developing a new feature I decided to open a branch on c:\Dev\MyApp\BranchNewFeature. I developed and when I decided that it was time to test it was like i hadn't done any changes at all. I hit F5 and i see the baseline version of the app... Looking into it I noticed a very curious fact: When i check IIS Express the "launch path" for the applications is the old one (c:\Dev\MyApp\Main). Can anyone help

Visual studio 2012 XAML designer invalid markup

岁酱吖の 提交于 2019-12-18 11:05:01
问题 I've got a project that contains usercontrols. For some reason, the design view for the window which uses the said controls has stopped functioning and insists on "Invalid Markup" - the error given is that some members of the usercontrols are not recognized or not accessible. The project however compiles and executes just fine. Loading it up in VS2010, the editor works fine, no errors whatsoever - the same even in Expression Blend. So far I have tried the typical clean, rebuild, manually

Resharper - is it possible to go to method's implementation on CTRL-click instead of going to declaration?

喜你入骨 提交于 2019-12-18 10:59:11
问题 if I do CTRL-click on method's name in VS2012 with Resharper 8, I'm redirected to the method's "declaration" - and that's quite inconvenient if I have lots of interfaces in my project. If it possible to configure resharper to go right to the IMPLEMENTATIONS of the method (and if there is more than one - display a context menu which I need to select the desired method from)? I can achieve this if I do right-click -> "Go to Implementation" but I really prefer to have this on ctrl-click. 回答1:

Do Visual Studio 2012 updates break C++ ABI?

三世轮回 提交于 2019-12-18 10:59:08
问题 When Microsoft initially released Visual Studio 2012 in September 2012, they announced their plan for providing updates for Visual Studio on a more regular basis. Since then, they have released Visual Studio 2012 Update 1 (Visual Studio 2012.1) in November 2012 and Visual Studio 2012 Update 2 (Visual Studio 2012.2) in April 2013. My question is: Did the updates introduce any changes to the C++ ABI (with regard to the initial VS2012 version)? Is it safe to link .lib s of different VS2012