3,774 questions with C++-related tags

Sort by: Updated
1 answer

UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied

Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…

Universal Windows Platform (UWP)
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,666 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,053 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,774 questions
asked 2024-11-19T04:13:17.18+00:00
DotNET Fan 271 Reputation points
commented 2024-11-21T19:11:16.4133333+00:00
Darran Rowe 1,046 Reputation points
0 answers

C++ RealTimeStylusAPI derives coordinates that are ten times larger than the actual coordinates.

In the following Packets in the RealTimeStylus API, I need to get the coordinates of the current input point on the screen. But strangely I found that this coordinate is normal for mouse input, while when it comes to finger and pen, the coordinate…

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,666 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,774 questions
asked 2024-11-21T13:15:05.9133333+00:00
RL Chen 250 Reputation points
1 answer

/MT and /MD question

I build on windows and use cmake vs2022 I try to build cef project and it always show 命令列 warning D9025: 覆寫 '/MD',以 '/MT' Is it possible for four case? /MT => generate static lib /MT => generate dynamic lib /MD => generate dynamic lib /MD…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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,774 questions
asked 2024-11-19T00:39:07.44+00:00
alice alice 40 Reputation points
edited an answer 2024-11-21T12:26:19.1066667+00:00
RLWA32 45,706 Reputation points
0 answers

How can I use the ID2D1DeviceContext interface in an MFC Direct2D application?

I am using Direct2D in a Visual C++ (Visual Studio 2022) MFC application that uses many of the Direct2D MFC classes. I need to use the ID2D1DeviceContext interface for various purposes. The MFC classes force you to use either ID2D1HwndRenderTarget or…

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,774 questions
asked 2024-11-02T11:31:51.59+00:00
simonx 126 Reputation points
edited the question 2024-11-21T03:29:28.7133333+00:00
Tianyu Sun-MSFT 31,411 Reputation points Microsoft Vendor
1 answer

How to disable frame (and titlebar) but keep resizing and snap features when using SendMessage to drag the window?

I'm trying to disable the titlebar (and frame), but keep the ability to resize the window and have it so the snap layouts work when triggering SendMessage. I have the trigger work, but when I remove all the bit flags returned from GetWindowLong that gets…

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,666 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,774 questions
asked 2024-11-19T04:56:46.9233333+00:00
Stanlyhalo 0 Reputation points
commented 2024-11-21T01:50:00.3533333+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to customize title color for MFC ribbon bar

In an MFC MDI with ribbon bar project created with AppWizard, how to change background color of title area?

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,774 questions
asked 2024-11-20T04:33:53.35+00:00
BorisM 21 Reputation points
commented 2024-11-21T01:33:57.2866667+00:00
BorisM 21 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.
5,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,774 questions
asked 2023-10-17T15:35:20.39+00:00
Services@MC 45 Reputation points
commented 2024-11-20T15:07:54.42+00:00
Steven Jeuris 0 Reputation points
1 answer One of the answers was accepted by the question author.

Can native Win32 exe show a WinUI3 Page?

I need to show a WinUI3 page from a native Win32 exe. I cannot make modifications to the Win32 exe. The architecture is like this: native Win32 .exe -> links to a C++/CLI dll with a known native C++ interface C++/CLI dll -> references and makes…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,945 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,666 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
338 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,053 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,774 questions
asked 2024-11-18T15:30:26.94+00:00
Eric Brandt 25 Reputation points
edited a comment 2024-11-19T22:01:28.0833333+00:00
Eric Brandt 25 Reputation points
1 answer One of the answers was accepted by the question author.

Is there a sample MAUI application to call c++ libarary

I have a cross-platform library written with C++, I use this library to create model and display it with OpenGL. Now I'd like to choose MAUI to create a desktop application and call above library to complete interactions. Now I need a sample for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,650 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,774 questions
asked 2022-06-13T02:36:40.78+00:00
Yang Yang 46 Reputation points
edited a comment 2024-11-19T16:50:13.2333333+00:00
Brian Johnson 0 Reputation points
0 answers

Heap Corruption after using CfUpdatePlaceholder

I can reliably crash .NET and C++ packaged applications (MSIX) on Windows 11 24H2 with Heap Corruptions, when updating Cloud Filter mini-driver placeholder files using CfUpdatePlaceholder. Repro: https://github.com/iterate-ch/CloudFiles-HeapCorrupt The…

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,539 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,945 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,774 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,012 questions
asked 2024-11-18T10:56:16.9033333+00:00
Jöran Malek 81 Reputation points
edited a comment 2024-11-19T10:22:45.9566667+00:00
Jöran Malek 81 Reputation points
1 answer

Windows can't install Visual C++

Whenever I try to install Microsoft Visual C++ 2015-2022 Redistributable it tells me that "The feature you are trying to use is on a network resource that is unavailable. It then tells me it was unable to uninstall a previous version. I've tried…

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,774 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,053 questions
asked 2024-11-18T19:38:01.4966667+00:00
Marcus Ohlhauser 0 Reputation points
edited an answer 2024-11-19T08:10:20.68+00:00
Tianyu Sun-MSFT 31,411 Reputation points Microsoft Vendor
1 answer

Help Identifying the Visual C++ Redistributable Version for vcruntime140.dll (14.40.33810.0)

I need help identifying the specific Visual C++ Redistributable version and its associated Visual Studio version for the following file on my system: • File Name: vcruntime140.dll • File Version: 14.40.33810.0 Could you let me know: Which Visual Studio…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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,774 questions
asked 2024-11-18T11:39:59.7166667+00:00
Praveena S Kumar 0 Reputation points
answered 2024-11-18T12:52:05.9+00:00
Olaf Helper 45,126 Reputation points
0 answers

After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project

I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger: The procedure entry point __sanitizer_ignore_free_hook____dll…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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,774 questions
asked 2024-11-13T12:56:41.03+00:00
Andrei Hanganu 0 Reputation points
edited a comment 2024-11-18T08:43:26.48+00:00
Tianyu Sun-MSFT 31,411 Reputation points Microsoft Vendor
1 answer

cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...'

This problem popped up out of nowhere in the middle of October. " cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696) " I'm getting this error…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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,774 questions
asked 2024-11-16T00:21:18.11+00:00
Justin C 0 Reputation points
answered 2024-11-18T01:50:35.75+00:00
Tianyu Sun-MSFT 31,411 Reputation points Microsoft Vendor
0 answers

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…

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.
798 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,774 questions
asked 2024-11-11T10:46:09.8533333+00:00
Eswaramoorthy K 0 Reputation points
commented 2024-11-15T06:18:59.53+00:00
Jeanine Zhang-MSFT 9,866 Reputation points Microsoft Vendor
0 answers

OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2

We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…

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,666 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,774 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,012 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 0 Reputation points
commented 2024-11-15T05:48:12.8333333+00:00
Jeanine Zhang-MSFT 9,866 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to pass an range directly to a C++ DLL/dylib on Excel for Mac?

Hi, I'm trying to extend Excel using C++ on a Mac. I basically want to pass a range directly to a function written in a C++ dylib. So far I have been able to pass arrays of basic types such as Doubles and Integers successfully. However, looping through a…

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,774 questions
asked 2021-06-27T04:49:53.577+00:00
Paulo Bueno 96 Reputation points
commented 2024-11-15T04:26:11.7733333+00:00
Paulo Bueno 0 Reputation points
1 answer

Visual c++ merge modules

From where can I get the v143 visual c++ merge modules for x64.I found it in Program Files\Microsoft Visual Studio\2022\Professional\VC\Redist\MSVC\v143\MergeModules. But the merge module in them contain dll for both amd64 and arm64, can i get merge…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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,774 questions
asked 2024-11-11T13:05:00.4733333+00:00
Bevan Thomas 40 Reputation points
edited a comment 2024-11-11T16:07:32.52+00:00
Darran Rowe 1,046 Reputation points
0 answers

why some language will change when remove some code?

in some contries language like Arab the text will change its shape when remove some of them. مرحبا I just remove last one مرحب the first will change too I remove again. مرح you can see it totally changed. حبا to ح what I want to do is to create each…

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,666 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,774 questions
asked 2024-11-08T02:58:22.0466667+00:00
mc 4,716 Reputation points
commented 2024-11-09T23:01:49.48+00:00
Darran Rowe 1,046 Reputation points
1 answer

Issues with GetAppLicenseAsync in MFC C++ Application.

In the application, there is an MFC project and a Windows Runtime Component (Universal Windows) project, see my previous question…

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,774 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
346 questions
asked 2024-10-31T21:24:39.75+00:00
Ming Yu 20 Reputation points
commented 2024-11-08T14:47:25.6766667+00:00
Ming Yu 20 Reputation points