visual-studio-2012

How can i build project in visual studio 2012 on both way(dll and lib) together

送分小仙女□ 提交于 2020-01-02 05:02:23
问题 I managed to set up build project in dll mode and in library mode but not together: for build in dll: project->properties->Configuration Type: Dynamic Library (.dll) project->properties->Target Extension: .dll for build in library: project->properties->Configuration Type: Static library (.lib) project->properties->Target Extension: .lib it is possible to build both of them together? 回答1: Yes, you can have single project that can be used for .dll and .lib. Steps to be followed: Visual Studio

Why doesn't C code compile properly in Visual Studio?

此生再无相见时 提交于 2020-01-02 04:05:17
问题 When trying to compile some C code in Visual Studio, I often get numerous errors. The reason for this problem is Visual Studio's C compiler only supports an old version of C. How can I quickly fix all of my C code to be compatible with the Visual Studio compiler? For example, I'm trying to compile websocket.c and associated headers—from http://libwebsockets.org/trac/libwebsockets. I'm getting a lot of errors about "illegal use of this type as an expression" which, according to other answers,

VS2012 ClickOnce Applications not working on Windows XP

心已入冬 提交于 2020-01-02 03:00:36
问题 While installing on WinXP ,following error apperad On Win7 application installed without problem. Windows forms app and WPF app both have the same problem and both of them worked correctly before in VS 2010. 回答1: It seems the only way is to publish it from VS 2010 SP1.Projects are compatible in both studios. 回答2: We had the same issue, but found a simple fix: Instead of running the setup.exe run the "xxxxxx.application" (manifest) file in the same location. This will execute and install in

Visual Studio 2012 - Item Template to “Add” context menu

巧了我就是萌 提交于 2020-01-02 02:25:07
问题 I succeed to create and add new Item Template to Visual Studio 2012. Now I am able to create that new item, using the right click in "Solution Explorer\Add\New Item" dialog. But how I can add this Item Template to appear directly in "Add" context menu? Thanks 来源: https://stackoverflow.com/questions/19419688/visual-studio-2012-item-template-to-add-context-menu

Convert MVC 2 ASPX into MVC 4 Razor view engine

蹲街弑〆低调 提交于 2020-01-02 02:22:25
问题 I am currently working on MVC 2 with visual studio 2010 and view engine as ASPX kind of project. So I have decided to move with Visual studio 2012 with MVC 4 and view engine as Razor . So could I achieve above task.If so How ? I would like to hear your experience for similar kind of situation. Note : My project is a large one. 回答1: Create a new MVC4 project in Visual Studio 2012 and add source files from your old solution to your new solution one at a time. Moving from MVC3 to MVC4 is easier

Does Visual Studio 2012 include the full Windows SDK

一个人想着一个人 提交于 2020-01-02 02:22:09
问题 If I've installed the Visual Studio 2012, do I need to install the Windows SDK, or are all tools / parts of the SDK included as part of the Visual Studio installation. 回答1: The visual studio 2012 installer does not contain the full Windows SDK or Visual Studio 2012 SDK. these need to be installed separately. 回答2: Depends on which version of VS 2012 you have installed. Professional version and above include the Windows 8 SDK, so unless you are planning to develop applications for Windows XP or

Will MS Visual Studio 2012 work with Windows Vista?

三世轮回 提交于 2020-01-02 02:21:36
问题 I run windows vista business and want to try MS Visual Studio Express 2012. Are they compatible? Where is the compatibility list? 回答1: At least not officially: http://www.microsoft.com/visualstudio/11/en-us/products/compatibility 回答2: You can not install VS2012 on Windows Vista. You will be able to target Vista with VS2012 but not with the public beta. The beta redistributable, confusingly, used to install on Vista but did not work there. There is no way of debugging or profiling applications

Can't import User32.dll into Visual Studio

夙愿已清 提交于 2020-01-02 02:19:06
问题 I tried: To add user32.dll from Reference Manager , and imported it from Windows\System32\user32.dll , I got Error Message : A reference to 'C:\Windows\System32\user32.dll couldn't be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component. using System.Runtime.InteropServices; [DllImport("user32")] To launch Visual Studio as Administrator Nothing works... it goes on my nerves I am trying 2 hours to import this damn .dll... 回答1: You do not need to

Error : Two output file names resolved to the same output path: “obj\Debug\Project1.Form1.resources”

不羁的心 提交于 2020-01-02 02:11:07
问题 I'm getting the error: Two output file names resolved to the same output path: "obj\Debug\Project1.Form1.resources" This error comes while trying to run a windows form application I created. Some searches showed me that this occurs due to the occurrence of two .resx files. I have two .resx files in my application. Also I have two forms in my application. I created the second form by copying the first form and renaming and modifying the copy. The two .resx files are form1.resx and form2.resx.

Qt C++ Library for Windows and OpenGL

江枫思渺然 提交于 2020-01-02 01:05:40
问题 I am trying to experiment with the Qt library on Windows. On their downloads page, I notice that the binaries built using VS2012 are available in two forms, with and without OpenGL. What exactly is the difference between the two? In the OpenGL version, do they have some special API implemented using OpenGL or does all of Qt rendering depend on OpenGL? Also, is there a version of Qt that uses DirectX? 回答1: @Raman: The opengl variant is using the desktop opengl version just like with Qt4. The