3,559 questions with C++-related tags

Sort by: Updated
0 answers

Mixing net standard and visual c++

Hello Using VS 2017, can one have both net standard 2.0 and visual c++ projects in the same solution with the net standard project referencing the visual c++ project (.vsxproj)? If I create one solution containing two projects of this kind using VS 2017…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,455 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,559 questions
asked 2024-05-21T08:47:24.7566667+00:00
Flade, David 0 Reputation points
commented 2024-05-22T13:32:24.59+00:00
Hui Liu-MSFT 41,146 Reputation points Microsoft Vendor
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,446 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,559 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
commented 2024-05-22T09:34:03.89+00:00
Dada Khalandhar Gooty 0 Reputation points
1 answer

How to Disable/Enable Audio Hardware Acceleration in Windows 11?

Hi there, I would like to Disable/Enable Audio Hardware Acceleration programmatically in Windows 11. Is there any way to implement it? Thanks. Best regards, Hank

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.
10,370 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,559 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
commented 2024-05-22T09:02:29.0633333+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Get RecycleBin path

I am trying to get the RecycleBin path with the following code: std::wstring GetRecycleBinPath() { std::wstring path{}; SHGetSpecialFolderPathW(NULL, path.data(), CSIDL_BITBUCKET, FALSE); std::clog << ::GetLastError() << std::endl; return…

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,559 questions
asked 2024-05-21T14:36:52.1966667+00:00
Flaviu_ 931 Reputation points
accepted 2024-05-22T08:25:22.75+00:00
Flaviu_ 931 Reputation points
1 answer

Porting SetTransform function in DirectX 9 to DirectX 11 or 12

Iam porting an existing project with DirectX 9 to DirectX 11 or 12, I am trying to port the function SetTransform from DirectX 9, there is no reference found in DirectX 11 or 12, please kindly suggest where to find the above function and how to define…

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,446 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,559 questions
asked 2024-05-22T03:54:58.4266667+00:00
Balineni Rohith Sai 0 Reputation points
commented 2024-05-22T06:28:40.0566667+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
0 answers

How to access registry items under driver service registry key path of Win11 24H2 in a WDF driver?

I am currently utilizing a Kernel Mode Driver Framework (KMDF) driver, employing the RtlQueryRegistryValues function with parameters (RTL_REGISTRY_ABSOLUTE, L"\Registry\Machine\System\CurrentControlSet\Services...") to access specific registry…

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,559 questions
Windows Hardware Performance
Windows Hardware Performance
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.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,555 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
14 questions
asked 2024-05-22T01:22:02.8666667+00:00
Jingshan Song (Jingshan) 0 Reputation points
edited the question 2024-05-22T01:39:21.4766667+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
5 answers

NVMe Sanitize call returns unexpected error 0x13D

Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…

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,446 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,559 questions
Windows Hardware Performance
Windows Hardware Performance
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.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,555 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
commented 2024-05-21T07:05:13.5+00:00
Winson.Loh 0 Reputation points
1 answer One of the answers was accepted by the question author.

.net8 windows form design view problem.

I am developing Revit addin in Vidual Studio in c++/cli as class library. Before moving to .net platform everyhing was working fine. But in .net Windows form design views doesnt work. Though when I add form element by code. It compiles and works. The…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 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,559 questions
asked 2024-05-04T19:10:34.6166667+00:00
Ahmet Haluk UZUNER 20 Reputation points
edited a comment 2024-05-21T07:03:47.26+00:00
Ahmet Haluk UZUNER 20 Reputation points
1 answer

Calling Windows WebAuthn API in Custom Credential Providers

I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key. I'm trying to integrate that application with my…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,791 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,446 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,559 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,779 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,389 questions
asked 2023-07-04T08:00:36.2933333+00:00
Steven Chu 15 Reputation points
commented 2024-05-21T02:49:03.56+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Got 'Insufficient system resources exist to complete the requested service' while building Store version of application

Hello folks, When I tried to build the Store (MSIX) version of my application via Windows application packaging project in VS 2022, I got the following errors: ...... 1>Generating code 1>Finished generating code 1>StartupTask.vcxproj ->…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 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,559 questions
asked 2024-05-20T18:38:53.32+00:00
0xNima 20 Reputation points
commented 2024-05-20T18:59:36.62+00:00
0xNima 20 Reputation points
1 answer

WebauthN c++ Native Windows API in credential provider

Hi team, I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key and platform Windows authenticator…

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,446 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,559 questions
asked 2024-02-19T11:39:47.02+00:00
VIGNESH M 5 Reputation points
commented 2024-05-20T12:19:31.5666667+00:00
Harshit Patidar 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,837 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,446 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,559 questions
asked 2024-05-17T13:18:09.3866667+00:00
RL Chen 190 Reputation points
commented 2024-05-20T10:42:45.4533333+00:00
RL Chen 190 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,837 questions
Universal Windows Platform (UWP)
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,225 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,559 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,559 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,837 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,446 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,559 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,946 Reputation points
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,559 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,559 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,559 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,559 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,684 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,559 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,566 Reputation points Microsoft Vendor