visual-studio-2012

C++\GLUT window menu bar

孤街浪徒 提交于 2020-01-11 10:22:29
问题 I am writing a simple glut Application, and my teacher wants me to create a top menu bar, as in any windows app(you know, file\edit etc, the ruler on the window's top). I looked in glut documentation and googled, all I can find is a popup menu that opens with mouse's right button - not what was defined. 回答1: GLUT library provide service like creating window, callback functions, timer, mouse event and key press. But you want to make window menu bar for which GLUT does not provide the built in

C++\GLUT window menu bar

别来无恙 提交于 2020-01-11 10:21:50
问题 I am writing a simple glut Application, and my teacher wants me to create a top menu bar, as in any windows app(you know, file\edit etc, the ruler on the window's top). I looked in glut documentation and googled, all I can find is a popup menu that opens with mouse's right button - not what was defined. 回答1: GLUT library provide service like creating window, callback functions, timer, mouse event and key press. But you want to make window menu bar for which GLUT does not provide the built in

regex_replace issue

不羁的心 提交于 2020-01-11 09:12:36
问题 I'm using C++11 (windows 7 64 bit , visual studio 2012) I'm using a loop to replace some substring by another one. I have a file that has numbers separated by a double slash (//). for example: 10//20//1 3//4//5 5//2//1 to 10 20 1 3 4 5 5 2 1 However, when I attempt to do it with regex , it seems that I'm doing something wrong. Nothing happens. Also, where could I read more about regex C++11 string fData(data.substr(2)); string replaceStr("10//20//1 3//4//5 5//2//1"); regex r("//" regex

Upgrade to .Net 4.5 causes assembly to fail?

我与影子孤独终老i 提交于 2020-01-11 08:13:09
问题 I've got a project that targets .Net 4.0, and one of the referenced assemblies is .Net 4.5. Until I installed .Net 4.5 this was working fine, however after the install I get five warnings regarding the targeted .Net version along these lines: * The primary reference "xxxx.Library, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted

How to create a Simple Build Script for Visual Studio from the Command Line?

那年仲夏 提交于 2020-01-11 05:13:10
问题 I have a lot of Visual Studio Project Solutions in multiple directories (all with the extension .sln) and I want to write a simple batch script that will automatically build all solutions listed in the batch file. I am able to manually build a solution by starting up the Visual Studio Command Prompt (which is just a command-line instance with the following command executed "%comspec%" /k "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 After which I then build the project

Custom MSBuild Task: how to flush logging in VS2012 output window while task is still running?

半腔热情 提交于 2020-01-11 05:07:06
问题 I have a custom MSBuild task that takes some time to complete. It outputs progress using either Log.LogMessage() or BuildEngine.LogMessageEvent() (tried both). My problem is that all output doesn't appear in VS2012 Output window until the task is completed, making progress updates useless. I would like to have output appearing while the task is running, right away. I found various threads explaining to call frequently Application.DoEvents() , but that doesn't seem to solve the problem (maybe

DLL dependency not found when debugging with Visual Studio 11 RC

放肆的年华 提交于 2020-01-11 04:29:25
问题 My project is a standalone C++ application that uses FMOD for playing sound. I've previously developed the same project with Visual Studio 2010 without any problems, but 2012 gives me the classic error: "The program can't start because fmodex.dll is missing from your computer. Try reinstalling the program to fix this problem." The project seems to load other DLLs(such as Direct3d related files and d3d shader compiler) just fine. The problem occurs only if trying to debug or run the program

An error occurred during local report processing.The definition of the report ' is invalid

廉价感情. 提交于 2020-01-11 03:42:29
问题 I am new to using SSRS. I am using a .rdlc file for report generation in a PDF with VS 2012. When I tried to set the parameters like ReportParameter param = new ReportParameter(kvp.Key, kvp.Value); LocalReport.SetParameters(param); This throws an exception: An error occurred during local report processing..The definition of the report '' is invalid.. Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

An error occurred during local report processing.The definition of the report ' is invalid

随声附和 提交于 2020-01-11 03:42:08
问题 I am new to using SSRS. I am using a .rdlc file for report generation in a PDF with VS 2012. When I tried to set the parameters like ReportParameter param = new ReportParameter(kvp.Key, kvp.Value); LocalReport.SetParameters(param); This throws an exception: An error occurred during local report processing..The definition of the report '' is invalid.. Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

How to ensure that std::thread are created in multi core?

拥有回忆 提交于 2020-01-11 02:32:47
问题 I am using visual studio 2012. I have a module, where, I have to read a huge set of files from the hard disk after traversing their corresponding paths through an xml. For this i am doing std::vector<std::thread> m_ThreadList; In a while loop I am pushing back a new thread into this vector, something like m_ThreadList.push_back(std::thread(&MyClass::Readfile, &MyClassObject, filepath,std::ref(polygon))); My C++11 multi threading knowledge is limited.The question that I have here , is , how do