visual-studio-2012

C++ Object Initialization (Stack)

非 Y 不嫁゛ 提交于 2019-12-13 14:22:26
问题 I saw today a c++ Initialization of a class which I am not familiar with. CPrice price = CPrice(); The Initialization should normally look like this CPrice price; I would have guessed that the first one should throw an error or something. What happens here ? I would guess that the variable is on the stack because it wasn't initialized with new . I use Visual studio express 2012 with microsofts c++ compiler. Is it maybe something which is microsoft compiler specific and thus allowed ? 回答1:

Importing an existing source file in Visual Studio 2012

对着背影说爱祢 提交于 2019-12-13 14:17:22
问题 I want to add the source-code of a tutorial into an existing project, and I want the file to be copied to the project folder from the temporary file on the desktop I downloaded it to. Context clicking on the "Source Files" Folder in the Solution Explorer leads me the Add->Existing Item... menu, and I can then add the source file. However, it is NOT copied into the project folder, but stays in its original location. The project just knows about it, displays it in the Solution Explorer, and

VS 2012 IIS Express 8 - Unable to launch the IIS Express Web server

谁说胖子不能爱 提交于 2019-12-13 13:28:35
问题 I'm trying to run an MVC 4 project in IIS Express 8 (because that is apparently what comes with VS 2012) and every time I've tried to run it from VS, I get the following error. Unable to launch the IIS Express Web server. 14:53:48: Error: Cannot initialize OLE 14:53:48: Error: Cannot initialize OLE Launching IIS Express through WebMatrix seems to work fine. I've tried uninstalling and reinstalling, but nothing seems to work. Any suggestions? 回答1: I didn't see the OLE error you're having, but

running a bat file though python in current process

邮差的信 提交于 2019-12-13 13:28:25
问题 I am attempting to build a large system through a python script. I first need to set up the environment for Visual Studio. Having problems I decided to see if I could just set up and launch Visual Studio. I first set several environment variables and then call C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat x64 . Once this finishes I call devenv /useenv . If I do these from the command prompt everything works fine and I can do what I need to do in VS. My python code for

Creating COM using ATL in C++ from VS2012

丶灬走出姿态 提交于 2019-12-13 13:25:58
问题 Trying to create simple COM library using ATL in Visual Studio 2012. I do: New ATL Project Welcome to the ATL Project Wizard Next Application Settings - no change (DLL) Next Finish Got a lot of files: Trying to understand where to add simple function that can be called by COM user. I found only one place where I can add function using wizard: But I see that something is missing there regarding parameters selection like in,out,retval. And I was hoping that after adding new function at least

dlib load jpeg files

怎甘沉沦 提交于 2019-12-13 13:09:54
问题 I am trying to implement a program using dlib library. I have already been able to use dlib's all other files except the ones related to jpeg and png. #include "dlib\image_io.h" #define DLIB_JPEG_SUPPORT int main(){ dlib::array2d<dlib::rgb_pixel> arr1; dlib::load_jpeg(arr1,"sailboat1234.jpeg"); } I have included to my project the source.cpp file and the ones inside the dlib/external . Also i have included into c++ general the dlib-18.11 folder which contains the dlib folder. Lastly, the

Slow symbol loading in an ASP.NET Project in VS2012

大憨熊 提交于 2019-12-13 12:24:48
问题 I'm having an issue with loading symbols on my ASP.NET MVC project. The first time I load visual studio and debug my project, symbols are loaded in roughly 2 seconds. I then end the debug session, make a code modification, and debug again, and the symbol load time is about a minute. Based on the research I have done, here are some applicable settings on my machine/VS: In Options/Debugging/Symbols/Symbol file locations, "Microsoft Symbol Servers" is unchecked, and there are no additional

XAML is not updating when debugging on a WP8 device

你。 提交于 2019-12-13 12:06:50
问题 I am experiencing a problem when deploying to a Windows Phone 8 device. It seems the XAML is not updating when I do a build and debug. The only way it seems to update is when I do a Rebuild > Debug or uninstall the app then debug. Here is a scenario: A page contains a button with a click event named "Button_Click". I debug and everything works. Stop debugging. Now change the event handler's name to NewButton_Click (yes, in both xaml and cs). Start debugging again, click the button and you get

Instead of “Data Row 0”, “Data Row 1” etc. Output a custom name

北城以北 提交于 2019-12-13 12:00:04
问题 In Visual Studio Team Foundation Server 2013, I'm using the Unit Testing Framework. Specifically, I'm using data-driven testing that will read from an XML file. The gist of my question Here's some sample code: using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class DataDrivenTestingClass{ public TestContext TestContext{get; set;} [TestMethod] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "test.xml", "XMLTests", DataAccessMethod.Sequential)] public void

There are no components in DLL that can be placed on toolbox

社会主义新天地 提交于 2019-12-13 11:39:36
问题 I have a DatePicker custom control that I am trying to add to toolbox. The name of the file is BasicFrame.WebControls.BasicDatePicker.dll and I go through the procedure of right click in Toolbox > Choose Items and then selecting the file after browsing to it under .NET Framework components. I however get this error message: There are no components in that can be placed on toolbox Why do I get this message and how can I resolve it? 回答1: Have you checked the visibility of the custom classes? If