visual-c++

Visual Studio - “Unknown Compiler version” after upgrading

别说谁变了你拦得住时间么 提交于 2021-02-18 09:54:12
问题 I have a Visual Studio 2015 C++ project which I wanted to upgrade to VS 2017. I had already denied the automatic prompts to upgrade my project when I first opened my project in VS 2017 (wasn't sure I wanted to upgrade at the time) so I couldn't update my project that way. Instead, I just went to my project's: Properties->Configuration Properties->General And in there I updated the 'Platform Toolset' option to 'Visual Studio 2017 (v141)' and also changed the 'Window SDK Version' to 10.0.16299

How can I do random name picker in multiple textboxes in c# framwork? [closed]

我的未来我决定 提交于 2021-02-17 07:14:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 18 days ago . Improve this question I need help with random name picker in multiple textboxes in c# framwork. Can someone help me with how I can get started? How to think? I would appreciate the help! 回答1: You can call Enumerable.OfType<TResult>(IEnumerable) Method to get the list of all

Visual studio wont work with “MoveTo” (win32api)

不想你离开。 提交于 2021-02-17 07:11:23
问题 Here's the code below, VS said that on line 109 ( MoveTo(hdc, x, y); "MoveTo" is undefined . Can someone explain me what's wrong ? This is a win32api application. // Win32Project.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "Win32Project4.h" #include <windows.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int

Build visual studio C++ project within solution for multiple platforms

你离开我真会死。 提交于 2021-02-17 06:43:45
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to

Build visual studio C++ project within solution for multiple platforms

做~自己de王妃 提交于 2021-02-17 06:43:10
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to

Git Bash: Microsoft Visual C++ 14.0 is required, but I already have it installed

*爱你&永不变心* 提交于 2021-02-17 06:29:21
问题 I am using git to clone https://github.com/rkern/line_profiler.git on Windows 10. It is erroring out with this error but I have this installed (see image below): error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ This is the command I am using: git clone https://github.com/rkern/line_profiler.git find line_profiler -name '*.pyx' -exec cython {} \; cd line_profiler pip install . --user 回答1: You don't have

Python 2.7 64-bit erroneously refer to 32-bit (x86) for include files

半城伤御伤魂 提交于 2021-02-17 05:44:26
问题 I'm doing some legacy work with Python 2.7.18 in 64 bit. When PIP calling the compiler (VC for Python), it erroneously refer to 32-bit (x86) sources looking for include files, for example "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" . For 32-bit everything works all OK; for 64-bit the pre-compiled wheel file is an alternative that I prefer not to use for now. I'm wondering did I miss any setting pointing python and its compiler to 64-bit instead of x86? Or, at lease I want

“newly” installed visual studio returns 408 errors on blank program of type 'cannot open source file “errno.h” '

浪尽此生 提交于 2021-02-17 05:44:24
问题 Having installed VS 2019 on my PC, and opening up a new project, i get 408 errors that all say it cannot open various source .h files, such as errno.h, float.h, corecrt.h, etc. or 'the global scope has no "acosf" 'I had just installed visual studio and have no clue how it works, and have not done anything other than install it and open up a new project. Possibly useful information: It was not installed in the default location, but on the D: drive visual studio works fine when I open it with

Is there a way to add the Developer Powershell for VS 2019 as an integrated terminal in VSCode?

冷暖自知 提交于 2021-02-16 15:09:51
问题 I'm working on a project that requires me to compile C++ code using MSVC, but I am working mostly with VSCode. As such, I was wondering if there is a way for me to add the Developer Powershell as an integrated terminal, so that I can compile without needing a secondary terminal open. I thought of just opening VSCode from the Developer PS itself, but since this is mostly a temporary project it seemed like a lot of repetitive work. I tried using the Shell launcher extension for VSCode but it

Is there a way to add the Developer Powershell for VS 2019 as an integrated terminal in VSCode?

怎甘沉沦 提交于 2021-02-16 15:09:00
问题 I'm working on a project that requires me to compile C++ code using MSVC, but I am working mostly with VSCode. As such, I was wondering if there is a way for me to add the Developer Powershell as an integrated terminal, so that I can compile without needing a secondary terminal open. I thought of just opening VSCode from the Developer PS itself, but since this is mostly a temporary project it seemed like a lot of repetitive work. I tried using the Shell launcher extension for VSCode but it