3,553 questions with C++-related tags

Sort by: Updated
1 answer

C++ How to get layered window content image?

My goal is to get an HDC of an image or image of the contents of a layered window in Windows 7 and above. I tried PrintWindow(hwndMag, hdcDest, PW_RENDERFULLCONTENT), but this requires Windows 8.1. Note that layered windows may contain transparency, or…

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.
4,826 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,440 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,553 questions
asked 2024-05-17T13:18:09.3866667+00:00
RL Chen 170 Reputation points
commented 2024-05-20T09:04:42.53+00:00
RL Chen 170 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to implement deep linking in Windows app? I have created a Flutter app, and I want to do deep linking.

Could you please help, Is it possible to implement deep linking in a Flutter app on the Windows platform?

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.
4,826 questions
Universal Windows Platform (UWP)
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,206 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,553 questions
asked 2024-05-17T09:39:41.5933333+00:00
Jay 60 Reputation points
accepted 2024-05-20T05:07:38.5633333+00:00
Jay 60 Reputation points
1 answer One of the answers was accepted by the question author.

C++/CLI breakpoints not stopping

I try to debug an extension for Visual Studio (2019/2022) that I wrote in C++/CLI. Now... the extension itself works. The only problem is, that I cannot jump into the code while it is executing. The breakpoints never stop. But, when I create a C#…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 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,553 questions
asked 2024-05-14T00:10:57.0833333+00:00
Rudolf Meier 291 Reputation points
commented 2024-05-19T12:12:03.1966667+00:00
Rudolf Meier 291 Reputation points
2 answers

Why does my transparent-background window turn into black screen after window ghosting?

I have a pop-up window that acts as a watermark on my application over a parent window. It has a transparent background (WS_EX_TRANSPARENT), but when the application becomes non-responsive, Windows adds a ghost window with a black background. I tried…

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.
4,826 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,440 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,553 questions
asked 2024-05-10T14:33:43.0133333+00:00
Aditya Pingle 0 Reputation points
commented 2024-05-19T08:45:56.5266667+00:00
RLWA32 40,941 Reputation points
0 answers

Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST

A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…

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,440 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,553 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
edited a comment 2024-05-17T06:32:03.84+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
0 answers

error: command 'D:\\......\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 1

when i use 'python setup.py build develop' to Compile the cuda dependencies,it gives me this error: ........lib\model\csrc\cpu\ROIAlign_cpu.cpp : fatal error C1083: 无法打开编译器生成的文件: “”: Invalid argument error: command…

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,553 questions
asked 2024-05-17T03:02:21.4633333+00:00
Zhou Lewis 0 Reputation points
edited a comment 2024-05-17T05:51:57.32+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
1 answer

The scrollbars are not always visible until I resize the CDialog

My dialog resource is set to display both the horizontal / vertical scrollbars. And you can resize the window. In OnInitDialog I call the following code: void CResizingDialog::InitScrollBars() { const SIZE sz = { m_rcInit.Width(), m_rcInit.Height()…

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,553 questions
asked 2024-05-16T09:53:49.9966667+00:00
ChuckieAJ 86 Reputation points
answered 2024-05-16T14:47:22.77+00:00
ChuckieAJ 86 Reputation points
1 answer

Як виправити помилку С2731: 'mian': function can be overloaded

int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); ```}

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,553 questions
asked 2024-05-15T08:55:52.4533333+00:00
matzenko art 0 Reputation points
answered 2024-05-16T02:24:44.76+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
0 answers

How to create a new dll file in vs2022

How to create a new dll file in vs2022, why after I created a new dll file, the compiler reported error C1854: The information formed during the precompilation header process of creating the object file "pch.obj" could not be overwritten.

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,553 questions
asked 2024-05-10T14:23:22.9433333+00:00
yx 0 Reputation points
commented 2024-05-16T01:25:31.5066667+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
0 answers

Error squiggle not showing in visual studio code

Can't see error squiggles I have three files in my new C++ empty project, two of which are main.cpp and functions.cpp. I can see error squiggles in main.cpp but it is not in functions.cpp. The show squiggle option is on.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,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,553 questions
asked 2024-05-11T18:02:21.64+00:00
Samit Singh 0 Reputation points
commented 2024-05-15T04:18:50.4633333+00:00
Anna Xiu-MSFT 26,481 Reputation points Microsoft Vendor
0 answers

Application crashing -The process was terminated due to an unhandled exception.

Environment : OS Microsoft Windows Server 2019 Dotnet framework: 4.7 SQL : SQL Server 2019 Note: Previously our application was working fine in 2016 OS. Once we upgraded to OS 2019 we are facing below issue Application level - Event viewer log Faulting…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,493 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,553 questions
asked 2024-05-14T12:55:48.1233333+00:00
Chandra Bujankar 0 Reputation points
commented 2024-05-15T01:49:29.2466667+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
0 answers

How to add an application SID to component services DCOM Config security permissions?

How to add an application SID to component services DCOM Config security permissions? I have a COM Service which is logon as Network Service and I want to start another COM application(with DCOM) in this Service with CoCreateInstance, Local…

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,440 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,553 questions
asked 2021-03-04T03:08:08.713+00:00
Ji Shirley 181 Reputation points
commented 2024-05-13T13:52:42.04+00:00
Edison Henrique Andreassy 0 Reputation points
2 answers

How to hook the ItaskbarList4 class?

I'm trying to customize the taskbar buttons, for this i'm hooking the ItaskbarList4 class using Detours, however, the functions on MyTaskbarList isn't getting called, trying to figure out what's wrong: inline HRESULT(WINAPI* CoCreateInstance_O)(REFCLSID…

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,553 questions
asked 2024-05-06T09:48:17.41+00:00
Cesar 0 Reputation points
commented 2024-05-13T10:35:53.22+00:00
RLWA32 40,941 Reputation points
1 answer One of the answers was accepted by the question author.

Is there any way to disable loading of satellite DLLs for MFC programs?

According to this help page, any application or DLL created with MFC will attempt to load localized resources from satellite DLLs such as exampleENU.dll or exampleLOC.dll. We have built a legacy application using MFC, but we do not use this particular…

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,553 questions
asked 2024-04-25T11:02:07.57+00:00
Hermann Walth 20 Reputation points
commented 2024-05-13T07:31:49.4333333+00:00
Hermann Walth 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to use c++ 20 modules in shared libraries ?

Hello everyone, I am currently working on a test-project where I want to use shared libraries and I would like to leverage the new C++20 modules feature. However, I am having some difficulty understanding how to properly set up my code to use C++20…

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,553 questions
asked 2024-05-10T19:22:17.17+00:00
Michael Brunner 20 Reputation points
accepted 2024-05-13T07:24:51.6666667+00:00
Michael Brunner 20 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio debugger will not step into code of a separate project that builds to a dll (within the same solution)

I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll is…

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,553 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
asked 2024-05-09T23:39:57.78+00:00
jbl 20 Reputation points
commented 2024-05-11T18:26:04.8366667+00:00
jbl 20 Reputation points
1 answer

How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library

I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service. SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP…

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,440 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,553 questions
asked 2024-05-08T09:23:10.42+00:00
Shree (Contractor) 0 Reputation points
answered 2024-05-10T02:33:32.65+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
8 answers

Visual C++ vc_runtimeminimum_x64.msi Error

When trying to uninstall Visual C++ I get the following error: Here are the remaining versions of Visual C++ on my device: When trying to install the latest Visual C++ I get this error: I attempted to use the Program Install…

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,553 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.
975 questions
asked 2020-08-20T00:30:53.597+00:00
Will V 11 Reputation points
commented 2024-05-09T22:47:36.4266667+00:00
Lil1109 0 Reputation points
3 answers One of the answers was accepted by the question author.

Azure functions running 64 Bit native c++ dll

Hi Community, I reached out to Azure support via twitter and they suggested I post in here, for any help that might come my way. I have a .Net5 Isolated function that is running some proprietary c++ dll's, that I have compiled as 64 bit, these run…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 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,553 questions
asked 2021-07-25T10:14:26.913+00:00
Michael Pine 21 Reputation points
answered 2024-05-09T19:24:54.6633333+00:00
Hochgurtel, Brian D 20 Reputation points
2 answers One of the answers was accepted by the question author.

LoopbackCapture (`ActivateAudioInterfaceAsync` with `VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK` ), m_AudioClient->GetMixFormat failed with E_NOTIMPL

Hi, I use the applicationloopbackaudio-sample to record system audio, it works fine. However, the capture format is hard coded: // The app can also call m_AudioClient->GetMixFormat instead to get the capture format. // 16 - bit PCM format. …

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,440 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,553 questions
asked 2022-12-12T12:57:24.777+00:00
TianpingHsu 26 Reputation points
answered 2024-05-09T15:30:03.31+00:00
Tony 96 Reputation points