visual-studio-2012

How to develop a cross-platform C++ project?

╄→гoц情女王★ 提交于 2019-12-21 04:59:18
问题 I'm a C++ beginner and I'm starting to develop my first cross-platform C++ project. I need to use platform-specific calls (Win32 and POSIX) so I need to compile frequently both in Windows and Linux. Whit single-platform projects I'm using, until now, KDevelop in Linux and Visual Studio 2012 in Windows. How can I use two different IDEs in two different Operating Systems with the same project? Should I use a single, cross-platform, IDE? Should I learn CMake (or similar) and configure it to work

How do you add the 4.0 reference assemblies to your build server (so the compiler finds them)?

匆匆过客 提交于 2019-12-21 04:51:43
问题 The issue comes up when you install Visual studio 2012 on a machine without Visual studio 2010 installed previously (I think). I want to target .net 4.0, while building on Visual Studio 2012. I already have set up the machine without VisualStudo 2010. I end up with messages like: *Warning 2 The primary reference "blablaLibraryproject" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework "

Does /arch:AVX enable AVX2?

喜夏-厌秋 提交于 2019-12-21 04:29:26
问题 I can't find an answer to this simple question, does the /arch:AVX enable AVX2 with its fancy 256 bit registers on the Visual Studio 2012 Update 4? Line of thought: Yes, it enables AVX because VS doesn't mention AVX2. But I think VS can do AVX2 because my intrinsic work. No, it doesn't because SSE and SSE2 are separate 回答1: It refers to AVX not AVX2. According to Microsoft this applies (mostly) to floating point operations. VS2012 supports AVX2 intrinsic functions regardless of this flag. AVX

Linq to EF Join throws “Index was out of range” after upgrade from VS2010 to VS2012

僤鯓⒐⒋嵵緔 提交于 2019-12-21 04:01:30
问题 After upgrading from Visual Studio 2010 to 2012 code started throwing "ArgumentOutOfRangeException - Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" on Linq queries using Joins. The following simple example made in LINQPad (using an EF data model) gives me the ArgumentOutOfRangeException: void Main() { var iq1 = Customers.Select(ap => ap.ID); var iq2 = iq1.Join(Customers.Select(ap => ap.ID), a => a, b => b, (a, b) => new { a }); iq2

Regular Expression to match folder name with Productivity Power Tools Color Coding

人走茶凉 提交于 2019-12-21 03:52:29
问题 I would like to configure a RexEx to match any folder (parent or child) of a file path of any open file. So if any folder in the file path contains the name of the open file, the color coding of the tab is set based on the RegEx match. For example: websiteRoot/Content/MyName1/site.css = green colored tab when file opened websiteRoot/Content/MyName2/site.css = orange colored tab when file opened websiste/Shared/MasterPages/MyName1/main.master = green colored tab when file opened websiste

Launching Visual Studio from WebMatrix 2 opens wrong version

你说的曾经没有我的故事 提交于 2019-12-21 03:47:26
问题 I'm using Microsoft WebMatrix 2 to work on a simple ASP.NET WebPages site. When you are in the Files view, there is a Visual Studio Launch button that should open up the site Solution in Visual Studio 2012 . On my machine I also have Visual Studio 2010 installed and that is the version that gets opened when I click on the button. How can I make sure that Visual Studio 2012 is opened? I'm working on Windows 8 but I am pretty sure this applies to Windows 7 and XP as well. I suspect I may have

Visual Studio 2012 not recognizing all pending changes?

喜夏-厌秋 提交于 2019-12-21 03:18:28
问题 I'm working in TFS with my team for project and the problem occurs when I'm trying to make new modeling project for my classes, it doesn't show up in pending changes. So here is how I go: First I enter my folder where I keep my classes. I've tried from there many combinations: I've tried first right-clicking on my folder and putting "check-out for edit" and then continued to * (see later); next I've tried clicking on .csproj of my classes so I activate my project when I'll be adding modeling

visual studio express 2012 and cmake

天大地大妈咪最大 提交于 2019-12-21 02:38:08
问题 I am looking for a way to compile some libraries which come ready to be used through cmake, the problem is that I would like to use VC++ express 2012 (the first express version to allow x64 development) however when I run cmake I keep getting this: CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: Could not find cmake module file:C:/Users/Alexander Rojas

What are the negative consequences of turning debug heap off? (_NO_DEBUG_HEAP==1)

不羁岁月 提交于 2019-12-21 00:43:05
问题 The initial phase of my program loads in significant amounts of data into STL containers. I found that it was taking several minutes before I could reach the real meat of my program. After some searching, I found that I could set _NO_DEBUG_HEAP==1 within my VS2012 Configuration Properties->Debugging->Environment variable...turning off utilization of the windows debug heap. This gave me a 10x improvement in debugging speed. I have not yet found any description what what debugging functionality

What are the negative consequences of turning debug heap off? (_NO_DEBUG_HEAP==1)

為{幸葍}努か 提交于 2019-12-21 00:41:47
问题 The initial phase of my program loads in significant amounts of data into STL containers. I found that it was taking several minutes before I could reach the real meat of my program. After some searching, I found that I could set _NO_DEBUG_HEAP==1 within my VS2012 Configuration Properties->Debugging->Environment variable...turning off utilization of the windows debug heap. This gave me a 10x improvement in debugging speed. I have not yet found any description what what debugging functionality