visual-studio-2012

Fatal error cannot run 'mt.exe' at compiling VS 2012 C++ project

江枫思渺然 提交于 2019-12-13 05:36:03
问题 I upgraded Visual Studio to VS Professional 2012. Building old Visual C++ projects resulted in the error: LINK : fatal error LNK1158: cannot run 'mt.exe' Putting the folder with mt.exe into the path did not help. Currently I am using mt.exe in the folder C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\x64 回答1: Set "Generate manifest" as No in Linker. This helped 来源: https://stackoverflow.com/questions/19079611/fatal-error-cannot-run-mt-exe-at-compiling-vs-2012-c-project

Visual studio locking DLL because of embedding views using “embedded resource”

夙愿已清 提交于 2019-12-13 05:33:00
问题 PROJECT A contains a View , let's call it View1.ascx marked as "Embedded Resource" in the properties window both PROJECT A and PROJECT B and C load that view1 from the PROJECTA.DLL using a custom resource provider This way I can reuse my views across projects. Sadly, this causes visual studio to be unable to build PROJECT B , OR C the first time around, after each change to the PROJECTA.dll "Error 12 Could not copy "C:\GIT\PROJECTA\PROJECTA\bin\PROJECTA.dll" to "bin\PROJECTA.dll". Exceeded

Why can't my .NET 4.5 project use a DLL compiled for .NET 4? (Both use EF 5)

≯℡__Kan透↙ 提交于 2019-12-13 05:19:33
问题 I have an application that consists of a client-side application and a WebApi website. My client-side stuff is targetting .NET 4 so that I don't have to insist that users install .NET 4.5. My website, however, is entirely under my control, so I'm targetting .NET 4.5. There is one shared assembly, which I use for data access. It uses Entity Framework 5. When I build the client application, the DLL used is version 4.4.xxx, whereas when I build the web application, the DLL is 5.0.xxx. Up until

'this' pointer changes after calling a member function

纵然是瞬间 提交于 2019-12-13 05:17:08
问题 I use Visual Studio 2012 Express to debug a 64-bit app. Let's say both 'foo' and 'bar' are some member functions of a class C. 'foo' looks like: void foo() { bar(); // change to this->bar() works! } My program crashed because 'this' pointer is changed when it went inside 'bar'. The problem can be fixed by changing to 'this->bar()'. Any idea how I should debug this problem? Thanks 回答1: You mean that the following code works? void foo() { this->bar(); // instead of bar() } So, presuming foo()

AfterClean Target Doesn't Get Invoked When I Clean The Project

南笙酒味 提交于 2019-12-13 05:15:32
问题 I've added a 'BeforeClean' and an 'AfterClean' target to my .csproj file, originally designed to delete some build artifacts in locations outside the normal build path. When I did a "clean" on the project, I could tell that the files weren't getting deleted; so I dumbed down the action to just spit a message out. Like the delete command, the message command isn't getting invoked (I'm expecting to see the message in the 'Output' window). The only relevant advice I could find on the web was to

C# FreeLibrary() ArithmeticException

梦想的初衷 提交于 2019-12-13 05:14:13
问题 I am using Visual Studio 2012 and a C# WPF Application. I am actually trying to load 3 DLLs and then unload them. I have to do this because I cannot add those DLL as a reference to my C# project. The problem is that I keep getting an ArithmeticException with those DLL. I need all of them, because dll1 needs dll2 and dll3 to run properly. I have been executed my code step by step, and here is what happend : My LoadLibrary() do found all the DLLs. Once I get to the FreeLibrary(), there is no

Can't find/display info in browser

这一生的挚爱 提交于 2019-12-13 05:08:41
问题 New to VS 2012 MVC applications, first time doing RESTful API (currently at this point in the tutorial) and I can't seem to get info to properly display in Google Chrome. Having set breakpoints as shown in the tutorial in my Controller's Get() function, I know it is being called, and when checking the Network View in the browser, it sees both of my entries I'm trying to display. My code is practically identical to the example, with titles switched out: @{ ViewBag.Title = "Index"; Layout = "~

Can't start Gtk# Mono App without IDE (Unable to load DLL “intl”)

让人想犯罪 __ 提交于 2019-12-13 05:08:26
问题 Some Background information: Cross-Platform-Desktop-App written in C# with gtk# and mono. Target Framework: Mono / .Net 4.5 Runtime Environment: Microsoft .NET Problem I can build / debug / run the project in Xamarin Studio or Visual Studio 2012 perfectly fine. But whenever I try to start a debug/release build without it (open .exe), my app doesn't start at all. I tried HomeStream.exe 2> error.log as stated here. And error.log contained the following information: Unhandled Exception: System

import VS C++ DLL in C++ Builder

我的未来我决定 提交于 2019-12-13 05:04:19
问题 I created a project using C++/CLI in Visual Studio 2012. The GUI was made in C++ Builder XE2 and I would like to import the generated DLL from VS C++ 2012 but I was not able to import it correctly. HINSTANCE load = LoadLibrary(library); if (!load) ShowMessage("Error importing the library"); Unfortunately when I run the code after I use the LoadLibrary function the variable load is NULL. Any help? I unsterstood that I need to use some utilities from the C++ Builder to convert the DLL generated

Debug Multiple Solutions VS 2012

Deadly 提交于 2019-12-13 05:03:37
问题 I have been trying to debug a class library in a Solution A with a MVC project in Solution B. I run Solution B, set a breakpoint in Solution A, but the debugger never gets into Solution A. I have already tried with this answer and this answer with no success. How can I debug multiple Solutions in VS2012? Thanks! 回答1: There are some ways to do this. But the easiest would be: Start Solution B Go to Solution A Go to Debug->Attach to Process... Choose the executable you're running (from Solution