visual-studio-2015

VS2013 or VS2015 shows “unspecified error”

偶尔善良 提交于 2021-02-06 14:24:12
问题 When I open my worked solution (after merge from other branch) VS2013 shows error message "unspecified error" and I cannot close the window (the error's dialog jumps each time when I close it). VS2012 opens the solution without error messages. I suspect issue related to TFS configuration. How can I found actual reason of the error? 回答1: I have searched a lot about its root cause but couldn't found any concrete information. For me, Deleting the solution's .suo file. resolve this problem. 回答2:

Extending C++ to Python using Pybind11

强颜欢笑 提交于 2021-02-06 08:52:12
问题 I have got some code written in c++ which i am trying to use in python without rewriting the complete code in python again and i am using Pybind11 to build a python module for that. I am trying to achieve this thing in Microsoft Visual Studio 2015 by following this tutorial here https://pybind11.readthedocs.io/en/stable/basics.html I did following things in visual studio. 1) Downloaded Pybind11 from https://codeload.github.com/pybind/pybind11/zip/master 2) Unzipped the file 3) In visual

Upload a file(any doc file ) in xamarin forms

不问归期 提交于 2021-02-05 12:08:14
问题 How to browse and upload a file (not a pic) in xamarin forms? Ex. When i click on button event. its open the file manger of mobile and then pick any doc from mobile and then upload it. 回答1: First off, you need to have permission to read and write to the users phone Request permission as below using Plugin.FilePicker; using Plugin.Permissions; async Task<bool> RequestStoragePermission() { //We always have permission on anything lower than marshmallow. if ((int)Android.OS.Build.VERSION.SdkInt <

Upload a file(any doc file ) in xamarin forms

独自空忆成欢 提交于 2021-02-05 12:02:06
问题 How to browse and upload a file (not a pic) in xamarin forms? Ex. When i click on button event. its open the file manger of mobile and then pick any doc from mobile and then upload it. 回答1: First off, you need to have permission to read and write to the users phone Request permission as below using Plugin.FilePicker; using Plugin.Permissions; async Task<bool> RequestStoragePermission() { //We always have permission on anything lower than marshmallow. if ((int)Android.OS.Build.VERSION.SdkInt <

Alternatives to std::vector due to reallocation that invalidates pointers to elements

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-04 19:06:20
问题 this might be a newb question (i am) but i've searched as much as i could to find a solution to the following problem I have the following scenario (heavily distilled of course): class Container { std::vector<Object> obj; }; class Pointers { std::vector<Object*> obj_ptr; }; I have a routine that pushes back an element of type Object to the vector obj in Container then pushes back the pointer to that same element to obj_ptr . the overall idea is that obj_ptr[i] == &obj[i] throughout the life

Alternatives to std::vector due to reallocation that invalidates pointers to elements

不羁的心 提交于 2021-02-04 19:04:52
问题 this might be a newb question (i am) but i've searched as much as i could to find a solution to the following problem I have the following scenario (heavily distilled of course): class Container { std::vector<Object> obj; }; class Pointers { std::vector<Object*> obj_ptr; }; I have a routine that pushes back an element of type Object to the vector obj in Container then pushes back the pointer to that same element to obj_ptr . the overall idea is that obj_ptr[i] == &obj[i] throughout the life

Visual Studio 2015 Initializing Part Nuget.PackageManagement.VisualStudio.VSolutionManager must be called on UI Thread

扶醉桌前 提交于 2021-02-04 14:02:20
问题 While attempting to build or open a project in Visual Studio 2015 14.0.25431.01 Update 3 which I recently updated, I keep getting errors around nuget package management. Whenever I build the project the first time after opening VS, I get the error message below. I also get it when I try to open the nuget package manager dialog. Anyone else experience this? An exception was thrown while initializing part "Nuget.PackageManagement.VisualStudio.VSolutionManager". GetFullVsVersionString must be

Why does std::numeric_limits<long long>::max() fail? [duplicate]

半腔热情 提交于 2021-02-04 07:21:09
问题 This question already has answers here : #define NOMINMAX using std::min/max (4 answers) Closed 4 years ago . This line of code fails to compile in VS2015 Update 3: auto a = std::numeric_limits<long long>::max(); It cannot find the definition of max() . Why is this? 回答1: That max call may interfere with "evil" max preprocessor macro defined in the Windows SDK headers, that you have probably included (directly or indirectly). An option is to prevent the preprocessor max macro to kick in, using

pybind11 “Python is 64-bit, chosen compiler is 32-bit”

我是研究僧i 提交于 2021-02-02 06:52:10
问题 I'm trying to compile pybind11 on a Windows machine that has VisualStudio 2015 installed. I also have python 3.5.3 64bit installed, and cmake 2.8.12. I get the error: CMake Error at tools/FindPythonLibsNew.cmake:122 (message): Python config failure: Python is 64-bit, chosen compiler is 32-bit Call Stack (most recent call first): tools/pybind11Tools.cmake:16 (find_package) CMakeLists.txt:28 (include) I did not "choose" the compiler to be 32-bit, and looking at the CMakeLists.txt, I did not

pybind11 “Python is 64-bit, chosen compiler is 32-bit”

时光毁灭记忆、已成空白 提交于 2021-02-02 06:47:45
问题 I'm trying to compile pybind11 on a Windows machine that has VisualStudio 2015 installed. I also have python 3.5.3 64bit installed, and cmake 2.8.12. I get the error: CMake Error at tools/FindPythonLibsNew.cmake:122 (message): Python config failure: Python is 64-bit, chosen compiler is 32-bit Call Stack (most recent call first): tools/pybind11Tools.cmake:16 (find_package) CMakeLists.txt:28 (include) I did not "choose" the compiler to be 32-bit, and looking at the CMakeLists.txt, I did not