visual-studio-2012

Adding a static library to a project in the same solution (Visual Studio 2012)

故事扮演 提交于 2019-12-12 12:19:26
问题 I'm trying to create a static library that I will be using in a project. The library compiles fine and creates the *.lib file for it. To test my code, I added another project to the same solution. When I try to build the test project I get the following errors. error LNK1120: 4 unresolved externals error LNK2019: unresolved external symbol "public: __thiscall >matrix::~matrix(void)" (??1?$matrix@M@@QAE@XZ) referenced in function _main error LNK2019: unresolved external symbol "public: _

Can't open .sdf file in VS 2012: Unspecified error

会有一股神秘感。 提交于 2019-12-12 12:09:48
问题 I am trying to open an .sdf file in Visual Studio Web Express 2012 . It's my local Orchard environment, but I suppose that doesn't matter much, as I have found this error all over the place when Googling. However I only found solutions for Visual Studio 2010 and lower, so they don't seem to apply to me, since they usually include installing Visual Studio 2010 Tools for SQL Server Compact. Which doesn't work with 2012 obviously. Here is the error when I try to open the file directly from VS

AccessViolationException goes away when native code debugging is enabled

不羁的心 提交于 2019-12-12 12:09:44
问题 I get an AccessViolationException when I run the Google Drive API sample in Visual Studio 2012 on Windows 7 x64. My project is targeting .Net 4.5. I get the exception on line 185: await service.Files.Delete(file.Id).ExecuteAsync(); It happens in both Debug and Release modes, and in all platforms (x86, x64, AnyCPU). It does NOT happen when I run without the debugger attached ("Start without Debugging"). It does NOT happen when I enable the "Enable native code debugging" in the Project

Microsoft.ReportViewer.*.dll's are not showing up in references (v11 or 12)

核能气质少年 提交于 2019-12-12 12:07:34
问题 I have been working with RDLC reports using the ReportViewer.Common & ReportViewer.Web/WinForms dlls, version 10. The files produced by these dlls are a lot larger than those generated on a server instead of locally so I thought I would update the DLLs to v12. I downloaded and installed the 2012 redist: http://www.microsoft.com/en-gb/download/details.aspx?id=35747 However the dlls do not show up in the add references box - I can see version 8 and 10 in there but not 11 or 12 - all 4 versions

VS 2012 Syntax highlighting

浪尽此生 提交于 2019-12-12 11:39:01
问题 I have 2 computers running VS 2012 pro, and neither of them are showing any of the highlighting or coloring for the XML based files like I had for VS2010. The only express edition tool I have installed is SQL 2012, so I don't believe that is the problem. WebMatrix 1 and 2 have never been installed on one of the computers. I am pretty much at a loss here. 回答1: Fixed. I had to reset the environment more than once. Each time resulted in another part of VS breaking when I launched it. Eventually,

The call stack contains only external code

青春壹個敷衍的年華 提交于 2019-12-12 11:35:15
问题 I want that when I click on a other became visible. I'm do it using jQuery, but I'm not strong in it. I wrote script: <script type="text/javascript"> $(document).ready(function () { $('.visiblePanel').on('click', function () { $('.invisiblePanel').toggle(); }); }); </script> The layout I have done through С#: Panel visiblePanel = new Panel(); visiblePanel.Style.Add("background-color", "red"); visiblePanel.CssClass = "visiblePanel"; Panel invisiblePanel = new Panel(); invisiblePanel.CssClass =

tesseract Remove_Reference ambiguous symbol in project on visual studio 2012

人盡茶涼 提交于 2019-12-12 11:34:27
问题 I will describe my situation more in detail. I am building a system for the recognition of license plates, using C + + ,OpenCV ,Tesserect , but when I compile the code it is returned to me a stack of errors ambiguous references, so I inspected all lines of my code . I searched this group for solutions and have tried several without success. Problems: error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1011 error C2872 : ' Remove_Reference ' : ambiguous symbol

Replacing a WinForms TextBox with a RichTextBox

不羁岁月 提交于 2019-12-12 11:32:28
问题 I have a windows forms application that contains a TextBox. I would like to do a blanket replace of a particular TextBox with a new RichTextBox. If I delete the TextBox in question from the designer, won't Visual Studio 2012 automatically delete any code that references the textbox? Is there a way to do this gracefully without jeopardizing the code that is already there? I'm supposing that one way is to do a string replace in the cs files, including even, the Designer.cs files and find any

What factors make iterators so slow in debug mode (VC++ 2012)

江枫思渺然 提交于 2019-12-12 11:26:58
问题 I've got a vector of 10000 random numbers (mod 100) and I'd like to count how many pairs of two of those numbers sum to 100. I've written the following: auto noPairsSumTo100 = 0; const auto itEnd = end(myNums); for (auto it1 = begin(myNums); it1 != itEnd ; ++it1) { for (auto it2 = it1; it2 != itEnd ; ++it2) { if (*it1 + *it2 == 100) { noPairsSumTo100 ++; } } } On my machine this takes about 21.6 seconds to run in debug mode. If I set _ITERATOR_DEBUG_LEVEL=0 (which sets both _SECURE_SCL and

could not load file or assembly 'microsoft.sqlserver.management.sdk.sfc version=11.0.0.0

时光怂恿深爱的人放手 提交于 2019-12-12 11:26:52
问题 I am using Database first approach of Entity framework. When I create new connection in "ADO.NET Entity Data Model" then after adding server name and database name, then it shows me this error - Could not load file or assembly 'Microsoft.SqlServer.Management.Sdkc.Sfc, Version=11.0.0.0, Culture=neutral, PublicKey Toekn = 89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Found many links on Google and tried but it doesn't solve my issue. Could not load