Microsoft Q&A

C++

3,233 questions

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

Browse all C++ tags

3,233 questions with C++-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How to set accented characters on a Button in MFC application

Hi, I'm developping a little MFC project to drive an Arduino board. I try to change caption in a Button but accented characters (french) are displayed as garbage. My code: void…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,906 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-17T20:16:07.31+00:00
SG 30 Reputation points
accepted 2023-10-20T11:10:13.7733333+00:00
SG 30 Reputation points
2 answers

How to change gamma and brightness values for multi monitor setups

I'm trying to add a functionality to my app with which you can change gamma and brightness of any monitor connected. For gamma I was looking at GetDeviceGammaRamp / SetDeviceGammaRamp, but on that page it says: "We strongly recommend that you don't…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
3,187 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-10T09:08:39.2+00:00
sValentin 21 Reputation points
commented 2023-10-20T11:09:26.38+00:00
Castorix31 78,606 Reputation points
2 answers

Disable auto-saving when using Quick Replace (Ctrl+H)

In a recent Visual Studio, version 17.7.4, C++ programming, when using Quick Replace (Ctrl+H), the files that get modified are saved immediately after the modification takes place. Is there any option that can disable this behavior? Thanks.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,906 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-16T02:58:11.39+00:00
kwikc 126 Reputation points
answered 2023-10-20T10:01:04.5433333+00:00
kwikc 126 Reputation points
0 answers

Problems with starting a working build (Cocos-2d)

Hello everyone. I'm working on developing a game on Cocos2d, it's my own project, and a thing happened: After updating the build, I tried to run the .exe, and I got a blue screen when running with error "VIDEO_SHEDULER_INTERNAL_CODE" After…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,146 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-20T08:35:59.35+00:00
Anorak 0 Reputation points
commented 2023-10-20T09:52:36.94+00:00
Minxin Yu 7,286 Reputation points Microsoft Vendor
1 answer

How do i use winrt/c++ add my apps to " System ->Notifications->Notifications from apps and other senders" in windows11 ?

How do i use winrt/c++ add my apps to " System ->Notifications->Notifications from apps and other senders" in windows11 ?

Windows 8
Windows 8
A Microsoft operating system.
205 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,253 questions
asked 2022-08-02T10:01:15.187+00:00
Ida Su 1 Reputation point
accepted 2023-10-20T09:14:52.0133333+00:00
Ida Su 1 Reputation point
1 answer One of the answers was accepted by the question author.

Tengo falla de la funcion FTPGetFile del Wininet cuando el servidor FTP es un Linux

Tengo falla de la función FTPGetFile del Wininet cuando el servidor FTP es un Linux, la respuesta es no se encuentra el archivo, cuando el Servidor FTP es Windows funciona. No encuentro en todo internet (llevo 3 días) respuesta a este problema. Espero…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
896 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
25 questions
asked 2023-10-17T21:34:31.5733333+00:00
Jose Armando Hochnadel 20 Reputation points
edited the question 2023-10-20T08:15:49.63+00:00
Crystal-MSFT 34,431 Reputation points Microsoft Vendor
1 answer

How to check the size of the memory block available to an .exe?

Visual Studio 2022 Visual C++ So other than checking for bad_alloc with try catch, is there a way to look and the memory space available to an .exe and print out a value for the size of the available block of memory that the current .exe file can access?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-07T20:34:35.43+00:00
Phillip Russo 21 Reputation points
commented 2023-10-20T05:43:20.9666667+00:00
Minxin Yu 7,286 Reputation points Microsoft Vendor
1 answer

OLEDB stopped working after October updates including current SQL Server update

I have been using the same OLE_DB code via ATL classes for accessing SQL Server for several years. It worked without issue until the October updates. After the last update it now fails with an internal assert (from atldbcli.h) ATLASSUME(m_pAccessor !=…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
11,195 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-16T00:50:05.9733333+00:00
David Clark 0 Reputation points
commented 2023-10-20T01:41:17.5566667+00:00
David Clark 0 Reputation points
1 answer One of the answers was accepted by the question author.

VC runtime redistributable

Hello, What type of license needs to be bought to commercially redistribute the VC runtime without any restrictions? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 Is it free if we own a Visual Studio 2022…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,906 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-17T15:35:20.39+00:00
Services@MC 40 Reputation points
accepted 2023-10-19T11:19:40.4766667+00:00
Services@MC 40 Reputation points
0 answers

C++ exe not running inside Docker container

I have a C++ project written in C++ 98 on Windows platform. I'm trying to run its executables inside docker container but the exe is not running. Its not showing any error as well. I have checked the exe with Dependency Walker and all the dependent DLLs…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-17T07:40:19.71+00:00
Shobhit Gupta 0 Reputation points
commented 2023-10-19T10:36:28.9566667+00:00
RLWA32 35,671 Reputation points
3 answers One of the answers was accepted by the question author.

MICROSOFT VISUAL C++ 2010 X64 REDISTRIBUTABLE Expire Date

Where i find the end of service date 'MICROSOFT VISUAL C++ 2010 X64 REDISTRIBUTABL' Is this following the EOS of visual studio 2010? or Does it have a separate EOS period? Visual studio 2010's EOS comes out, but I can't find exactly…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,906 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2022-12-14T00:07:08.257+00:00
shbang 21 Reputation points
commented 2023-10-18T07:45:01.1533333+00:00
Tianyu Sun-MSFT 21,121 Reputation points Microsoft Vendor
0 answers

fail to draw bitmap correctly with Bitblt()

Part of callback function of a child window: case WM_MOVE: hdc = GetDC(hChild); hdcMem = CreateCompatibleDC(hdc); SelectObject(hdcMem, hBitmap2); BitBlt(hdc, 0, 0, width / 4, height / 4, hdcMem, or_x, or_y,…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-17T13:55:48.0933333+00:00
Rer 80 Reputation points
commented 2023-10-18T06:13:22.32+00:00
Jeanine Zhang-MSFT 7,281 Reputation points Microsoft Vendor
0 answers

How do I solve E_INVALIDARG error on ID3D11Device::CreateVertexShader method?

I'm getting an E_INVALIDARG error when creating the vertex and pixel shaders. I tried two methods, both of which failed. There is no error when compiling the shaders, so I assume the files are okay. Here are the shader files code: // VERTEX SHADER…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-09T17:36:32.0033333+00:00
CDev-8220 100 Reputation points
commented 2023-10-17T19:20:44.45+00:00
CDev-8220 100 Reputation points
1 answer One of the answers was accepted by the question author.

REST interface // Newtonsoft.Json.dll // Problem with System.Net.Http

Hello, System.Net.Http.Formatting Newtonsoft.Json.dll NuGet\Install-Package Newtonsoft.Json -Version 6.0.1 https://www.nuget.org/packages/Newtonsoft.Json/ Messages //Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0' //A dependency on it…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,674 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-12T18:53:02.76+00:00
Markus Freitag 3,441 Reputation points
accepted 2023-10-17T17:22:40.4866667+00:00
Markus Freitag 3,441 Reputation points
2 answers

creating a C++/windows/desktop project it dosn't show any form

After creating a project in C# I get the form. In C++ I doesn't

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,672 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-16T22:59:52.0066667+00:00
_vatte 0 Reputation points
answered 2023-10-17T06:50:10.83+00:00
Castorix31 78,606 Reputation points
3 answers

How can I fix PCH memory errors after c++20?

Greetings, I come to you with memory management issues. After C++20 came out, we have assigned this to be the standard language to our projects. We've been using PCH for a good while already, and until C++20 came out, there hasn't been any…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2022-06-16T06:26:48.357+00:00
Markus Andhoy 16 Reputation points
commented 2023-10-16T14:56:59.2366667+00:00
BOULE Johan 0 Reputation points
3 answers

Problems overriding CMDIChildWndEx::OnUpdateFrameTitle() ???

Different views of my MFC document are shown with tabs. These views (of the same document) are going to be very different and I want to label them (schematically) xyz.mz:1/alice xyz.mz:1/bob xyz.mz:3/charlie A very helpful answer to…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-14T15:50:32.6633333+00:00
David Webber 116 Reputation points
answered 2023-10-16T11:49:36.79+00:00
David Webber 116 Reputation points
2 answers One of the answers was accepted by the question author.

How to manage CView window titles in MFC?

In an MFC application in C++, with tabbed CView windows, a title appears in the tab. Nosing around, I find that this is the Window Text associated with the CView's parent window. The title can change: for example when a file is saved, the title…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-13T16:05:33.6166667+00:00
David Webber 116 Reputation points
answered 2023-10-16T11:48:57.4166667+00:00
David Webber 116 Reputation points
0 answers

Direct2D Drawing Gradient Thickness Curves

I've asked this question before, but GDI+ can only achieve gradient thickness curves by adjusting the thickness of each curve segment. I'm not happy with that, and I think it should be possible to solve this problem with Direct2D. (Previous questions:…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,250 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-06T10:40:01.2533333+00:00
RL Chen 120 Reputation points
edited a comment 2023-10-16T08:22:13.0166667+00:00
Castorix31 78,606 Reputation points
1 answer

Running External Application in a Microsoft::VisualStudio::CppUnitTestFramework Test

I am writing a test project for an MFC application using Microsoft::VisualStudio::CppUnitTestFramework, with a single step to verify end-to-end integration of the said application with all external parties (SQL Server and other entities). I need to start…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,906 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,233 questions
asked 2023-10-04T01:28:23.9333333+00:00
Iman Biglari 0 Reputation points
commented 2023-10-16T08:07:53.1666667+00:00
Zhengye Xu-MSFT 95 Reputation points Microsoft Vendor