visual-studio-2015

Can't open resource file in VS 2015: Can't open include file afxres.h

夙愿已清 提交于 2020-03-18 03:26:06
问题 I converted my VS 2012 projects to VS 2015 by using the automatic conversion tool. When I try to load a resource file (.rc) it fails with this error: fatal error RC1015: Can't open include file afxres.h Any idea? 回答1: I have seen the same problem with console applications without MFC that where generated with Visual Studio 2010 . One solution is to modify the installation of Visual Studio 2015 to include MFC . MFC is not installed by default because of it's size. But in my opinion this should

Nuget add packages gives access denied errors

天大地大妈咪最大 提交于 2020-03-03 09:12:08
问题 When I add Nuget packages via the Visual Studio 2015 GUI some packages don't install with the following error Access to the path 'Microsoft.DotNet.InternalAbstractions.dll' is denied. I tried running Visual Studio 2015 as Administrator and uninstalling the packages and adding them again but I still get the same error 回答1: I closed Visual Studio and killed the 2 running processes called dotnet as well as deleted the C:\Users\myser.nuget\packages folder to ensure all packages are redownloaded

The Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine even if it actually IS installed

限于喜欢 提交于 2020-03-03 05:05:09
问题 I try to connect .accdb file as a data source to my Windows Form application in Visual Studio. It keep saying the Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine. Error screenshot plus listed OleDb enumeratos I have installed all the recommended runtimes on related Answers marked as Accepted/working: Microsoft Access database engine 2010 (x64) Microsoft Access database engine 2016 (x64) Microsoft Access Runtime 2010 (x64) Microsoft Access Runtime 2013 (x64) but still

How to get project folder on a VSIX project

倾然丶 夕夏残阳落幕 提交于 2020-02-25 03:54:08
问题 I'm developing an extension for VS2015 and i need to get the project folder of the opened solution. And then find the bin folder to get the output DLL. All this because i need to instantiate a class from the output DLL using reflection. I tried to get some information from msdn but it's difficult to me understand. Is there a way to do this? Thanks in advance 回答1: You could try something like this... Find the project file of interest (maybe the startup project), or let the user select it. The

Prevent Visual Studio 2015 from removing line continuation characters (_) in VB.NET files

会有一股神秘感。 提交于 2020-02-24 17:49:10
问题 I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax: It removes "_" in concatenations: 'Before myString = "ABC" & _ "DEF" 'After myString = "ABC" & "DEF" or add a space before !: 'Before myDatatable.Rows(0)!myColumn 'After myDatatable.Rows(0) !myColumn This syntax isn't compatible with Visual Studio 2010 or 2013. How can I disable this changes? 回答1: I had the same problem, and I was able to fix it by disabling the "Pretty listing" option

Add breakpoint to c# class's every methods in VS2015

流过昼夜 提交于 2020-02-24 12:25:07
问题 I have a class and I would like the debugger to stop whenever any of its method are called. I tried using " New function breakpoint " but I couldn't find a working wildcard to use in " Function Name " (ex: I tried "MyNamespace.MyClass.*") There are example for c++, but they don't seem to apply as-is for c# (or I'm missing something). How can it be done? 来源: https://stackoverflow.com/questions/46090686/add-breakpoint-to-c-sharp-classs-every-methods-in-vs2015

Can I return Null iterator from a function

£可爱£侵袭症+ 提交于 2020-02-14 02:28:30
问题 I'm porting some old code from vs6.0 to vs2015. A function is returning a Null iterator; the caller compares it with NULL , which works in vs6.0, but in vs2015 that's an error. Is it possible that we can return a null iterator? The old code looks something like this: vector<string*>::iterator FindByCode() { //some code if (itr == str.end) { return NULL; } else { return itr; } } int main() { vector<string*>::iterator itr = FindByCode(); if (itr == NULL) { return EXIT_FAILURE; } } 来源: https:/

Setting up OpenCV 3.1 in Visual Studio 2015

痞子三分冷 提交于 2020-02-12 16:51:14
问题 I've downloaded opencv 3.1 and I want to start a project in Visual Studio 2015. I don't know how to link this library to my project. Also I want to know if I can continue with this opencv cause it just have a x64 and my project doesn't target on 64bits systems. 回答1: Download opencv 3.1 for windows Extract to folder like c:/opencv Set environment variables by setx -m . This depends on your path. Type this into command line started by cmd. setx -m OPENCV_DIR C:\opencv\build\x64\vc14 In the path

Setting up OpenCV 3.1 in Visual Studio 2015

僤鯓⒐⒋嵵緔 提交于 2020-02-12 16:50:52
问题 I've downloaded opencv 3.1 and I want to start a project in Visual Studio 2015. I don't know how to link this library to my project. Also I want to know if I can continue with this opencv cause it just have a x64 and my project doesn't target on 64bits systems. 回答1: Download opencv 3.1 for windows Extract to folder like c:/opencv Set environment variables by setx -m . This depends on your path. Type this into command line started by cmd. setx -m OPENCV_DIR C:\opencv\build\x64\vc14 In the path

Setting up OpenCV 3.1 in Visual Studio 2015

早过忘川 提交于 2020-02-12 16:49:14
问题 I've downloaded opencv 3.1 and I want to start a project in Visual Studio 2015. I don't know how to link this library to my project. Also I want to know if I can continue with this opencv cause it just have a x64 and my project doesn't target on 64bits systems. 回答1: Download opencv 3.1 for windows Extract to folder like c:/opencv Set environment variables by setx -m . This depends on your path. Type this into command line started by cmd. setx -m OPENCV_DIR C:\opencv\build\x64\vc14 In the path