3,806 questions with C++-related tags

Sort by: Updated
1 answer

i cant download microsoft visual c++ because it says setup failed 0x800705b4 i did not find any tutorials on youtube how to fix it,Please help me microsoft team

I wanted to install microsoft visual c++,when i download the microsoft visual c++ installer is stuck at initializing and then after 3-2 minutes it says setup failed.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,906 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,554 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,806 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,067 questions
asked 2023-05-21T16:28:56.12+00:00
Mario Regele 5 Reputation points
commented 2024-12-25T10:03:08.7233333+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
2 answers

How can I detect whether my Virtual machine is cloned one or not from the guest operating system in the hyper-v

Hi, I want to detect the virtual machine cloned one or not from my application, which I need to identify by executing the application in the guest operating system running on the hyper-v. Basically, I want to know what changes will be made to the cloned…

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,773 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,806 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,277 questions
asked 2024-12-05T15:26:52.05+00:00
Basu 41 Reputation points
edited the question 2024-12-25T08:45:49.5833333+00:00
Anna Xiu-MSFT 30,386 Reputation points Microsoft Vendor
0 answers

WinUI3: How to print framework element using cpp

My app have to windows. Depending on which the print is called from we getting the actual hWnd. My issue is how to to get an instance of printManager or is there another way to print from winui 3? // file: MainWindow.xaml.cpp ... #include…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
804 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,806 questions
asked 2024-12-24T23:57:15.6233333+00:00
Jens Tirsvad Nielsen 0 Reputation points
commented 2024-12-25T08:05:31.7066667+00:00
Jeanine Zhang-MSFT 10,126 Reputation points Microsoft Vendor
0 answers

How can I create a Gaussian blur with a printer render target using Direct2D?

I am using Direct2D to generate diagrams. I want to create a glow-effect around diagram boxes, using Gaussian blur. In order to do this, I paint a rectangle to an off-screen render target, blur it, and then get the off-screen render target's bitmap and…

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,699 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,806 questions
asked 2024-12-16T17:04:06.37+00:00
simonx 126 Reputation points
edited a comment 2024-12-24T11:45:31.7+00:00
simonx 126 Reputation points
1 answer One of the answers was accepted by the question author.

How to assign a letter to a vhdx disk without getting it listed?

One way I know to assign a letter to a vhdx disk is using the winapi AddAcessPath but to it work, first i need to attach the disk. Even attaching the disk with the flag ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER, when it receives a letter it shows a shell…

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,806 questions
asked 2024-12-21T01:06:36.7066667+00:00
Laila 40 Reputation points
edited the question 2024-12-24T09:10:23.57+00:00
Laila 40 Reputation points
1 answer

Dialog box before launching of application in winui3 c++/winrt

I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
804 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,806 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
824 questions
asked 2024-12-18T06:27:05.37+00:00
Vivek Rao 20 Reputation points
commented 2024-12-24T08:27:09.67+00:00
Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
1 answer

Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString

I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…

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,699 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,806 questions
asked 2024-12-17T05:51:39.31+00:00
Sreekanth N Kartha 0 Reputation points
edited a comment 2024-12-24T08:26:09.1733333+00:00
Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
0 answers

Information not available, no symbols loaded for AppxPackaging.dll

Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…

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,699 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,806 questions
asked 2024-12-09T04:11:02.1666667+00:00
Tran Thi Hieu Ngan 0 Reputation points
commented 2024-12-24T08:24:53.22+00:00
Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
2 answers

How to avoid minimize on show desktop or peek desktop from an application.

Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…

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,699 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,806 questions
asked 2024-12-06T18:42:36.9766667+00:00
Bhushan Kolhe 0 Reputation points
commented 2024-12-24T08:24:02.64+00:00
Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
2 answers

How do I filter GPUs by type in DXGI (integrated vs dedicated device)?

Hello! I have written an extension for the Elgato Stream Deck using C++ and Microsoft DXGI (available here) that queries the utilization of the user's GPU and displays it on the Stream Deck. I need to be able to filter out integrated GPUs and only…

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,699 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,806 questions
asked 2024-12-21T04:19:39.06+00:00
Noah Thompson 5 Reputation points
commented 2024-12-24T06:47:35.2166667+00:00
Castorix31 86,406 Reputation points
0 answers

Where can I find a stable release. The current one is bunk.

I have just had an issue with a computer virus that just passed through my scan. I do work for free that I would already be paid $50 to do and I had to a bunch of work just to try to use a game that I made before that is not understood in release mode.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,306 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,806 questions
asked 2024-12-23T04:53:38.2066667+00:00
Carle Banning 0 Reputation points
commented 2024-12-24T06:29:58.3533333+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
1 answer

How to completly remove a virtual disk created?

I'm experiencing the same problem seen on this question, i have a lot of vhdx disk listed that seens that are not being properly "removed", even after detaching and deleting them. There's no answer on the mentioned question as the OP…

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,806 questions
asked 2024-12-21T21:48:14.33+00:00
Laila 40 Reputation points
commented 2024-12-23T21:52:31.54+00:00
RLWA32 46,271 Reputation points
1 answer

MediaFoundation: TimeStamp of first frame is not getting correctly set to 0. Instead, it is getting set as 0.0333 (frame duration)

I'm trying to read two frames, each individually stored in binary files named frame1.bin and frame2.bin, and create an MP4 video file called sample.mp4. Here's what I'm doing: I read a frame, associate it with its respective timestamp, and write it 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,806 questions
asked 2024-11-11T10:46:09.8533333+00:00
Eswaramoorthy K 0 Reputation points
commented 2024-12-23T10:31:15.9166667+00:00
Qiaofu Chen (Shanghai Wicresoft Co Ltd) 0 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Basic <thread> library functions not working!

I was trying to create a code with threads, but it won't let me do that kind of thing. The this_thread and thread global is non-accessible for creating new threads and ::sleep_for functions. I am pretty new to vs code so please help me. This is also not…

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,806 questions
asked 2024-12-20T21:23:31.37+00:00
The Codeler 40 Reputation points
edited a comment 2024-12-23T07:39:03.7+00:00
Minxin Yu 12,341 Reputation points Microsoft Vendor
1 answer

How do I use Header Units with the Windows Desktop Application default template and resolve conflicts with headers?

I am trying to use Header Units in a Desktop Application, but am getting problems with headers, and the .ifc file. Problems with gdi, and DirectX header includes : C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\GdiplusEnums.h(27,13):…

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.
5,651 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,699 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,806 questions
asked 2024-12-13T23:41:21.97+00:00
CDev-8220 220 Reputation points
commented 2024-12-22T23:51:07.9266667+00:00
Darran Rowe 1,236 Reputation points
1 answer One of the answers was accepted by the question author.

cin sometimes compiling and never working.

I'm trying to figure out how to use vs code, but stupid thing is mad at me. When I put in this code: #include <iostream> using namespace std; int main() { cout << "Hello world!"; int x; cin >> x; cout…

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,806 questions
asked 2024-12-20T04:51:05.96+00:00
The Codeler 40 Reputation points
accepted 2024-12-20T17:03:34.42+00:00
The Codeler 40 Reputation points
1 answer

What is the reason for a behavior change observed in a C program in VS2019 (compared to VS2017)?

Given is the following well defined C90/C99 program test.c (please assume C, not C++!) : #include <stdio.h> void* p1; void* p2; int i[2][2]={{1,2},{3,4}}; int main(void) { p1 = (void*)&i[0]; p2 = (void*)&*(int(*)[2])p1; …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,306 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,806 questions
asked 2024-12-06T20:16:08.1366667+00:00
schroeder 0 Reputation points
commented 2024-12-19T11:10:08.7266667+00:00
Darran Rowe 1,236 Reputation points
1 answer

can anyone help with downloading microsoft visual c++ 2022 x86 minimum runtime 14.38.33130???

[4CAC:6540][2024-12-14T01:46:53]i001: Burn v3.14.1.8722, Windows v10.0 (Build 22631: Service Pack 0), path: C:\Users\ricar\AppData\Local\Temp{494CE8F4-7595-494D-BF0D-28EB85731EF4}.cr\VC_redist.x86 (4).exe [4CAC:6540][2024-12-14T01:46:53]i009: Command…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,306 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,806 questions
asked 2024-12-14T09:55:27.9+00:00
Ricardo Quizonmendoza 0 Reputation points
commented 2024-12-19T04:26:06.57+00:00
Anna Xiu-MSFT 30,386 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

PROJECT WONT RETARGET SDK VERSION AND CANT DETECT SDK

I HAVE TRIED EVERYTHING TO FIX THIS ISSUE, I AM UNABLE TO BUILD C++ PROJECTS EVERYTIME I GET THE SAME ERROR : "The Windows SDK version 10.0.20348.0 was not found. Install the required version of Windows SDK or change the SDK version in the project…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,306 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,806 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,067 questions
asked 2024-12-18T05:36:36.5833333+00:00
gavin 20 Reputation points
commented 2024-12-18T09:30:33.1133333+00:00
gavin 20 Reputation points
0 answers

user32.dll!UserCallWinProcCheckWow()

My MFC embed WPF, and sometimes I want to show a WPF dialog, it will crash. I find below difference, and want to know when execute the two functions. there is not parameter in the crashed call stack: user32.dll!UserCallWinProcCheckWow() there are…

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,699 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,152 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,806 questions
asked 2024-12-16T10:36:24+00:00
Jin Yang 20 Reputation points
commented 2024-12-18T02:10:39.13+00:00
Minxin Yu 12,341 Reputation points Microsoft Vendor