3,777 questions with C++-related tags

Sort by: Updated
0 answers

VS2022 vs ptrust.cpp

While attempting a C++ compile in VS2022 the following error is raised: LNK1104 cannot open file 'msvcurt.lib' A search for this file in the VS2022 file structure results in 'file not found'. Searching by file contents results in this file being…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,236 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,777 questions
asked 2024-11-21T14:22:28.62+00:00
J Slade 1 Reputation point
commented 2024-11-27T03:36:48.6+00:00
J Slade 1 Reputation point
0 answers

How do I know which process trigger the injected keyboard (backstage?)

My application is detecting the keyboard input, and also the injected flag keyboard. below is my code, I want to get the process triggered the LLKHF_INJECTED flag keyboard input event. static LRESULT CALLBACK KeyboardHookProc_LL(int nCode,WPARAM …

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,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,777 questions
asked 2024-11-25T02:59:50.2633333+00:00
东朴 虞 0 Reputation points
commented 2024-11-26T11:35:15.4433333+00:00
RLWA32 45,716 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,777 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,054 questions
asked 2024-11-18T19:38:01.4966667+00:00
Marcus Ohlhauser 0 Reputation points
commented 2024-11-26T10:04:02.44+00:00
Tianyu Sun-MSFT 31,421 Reputation points Microsoft Vendor
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,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,777 questions
asked 2024-11-21T13:15:05.9133333+00:00
RL Chen 250 Reputation points
commented 2024-11-26T09:24:38.4+00:00
Jeanine Zhang-MSFT 9,946 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,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,777 questions
asked 2024-11-19T04:56:46.9233333+00:00
Stanlyhalo 0 Reputation points
commented 2024-11-26T02:48:49.8766667+00:00
Roy Li - MSFT 33,471 Reputation points Microsoft Vendor
1 answer

How to Download the Serial Monitor Tool?

I came across this tool, https://learn.microsoft.com/en-us/cpp/embedded/serial-monitor?view=msvc-170&tabs=visual-studio. How can this tool be downloaded?

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,777 questions
asked 2024-11-22T07:49:22.31+00:00
Cenk 1,021 Reputation points
commented 2024-11-25T01:53:37.0133333+00:00
Minxin Yu 12,176 Reputation points Microsoft Vendor
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,672 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,072 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,777 questions
asked 2024-11-19T04:13:17.18+00:00
DotNET Fan 271 Reputation points
edited a comment 2024-11-22T00:53:36.4433333+00:00
Darran Rowe 1,046 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,236 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,777 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,716 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,777 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,421 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,777 questions
asked 2024-11-20T04:33:53.35+00:00
BorisM 41 Reputation points
commented 2024-11-21T01:33:57.2866667+00:00
BorisM 41 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,236 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,777 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,952 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,672 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,072 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,777 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,673 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,777 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,554 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,952 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,777 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,046 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

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,236 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,777 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,206 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,236 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,777 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,421 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,236 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,777 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,421 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.
802 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,777 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,946 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,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,777 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,046 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,946 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,777 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