Microsoft Q&A

C++

2,616 questions

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.

Browse all C++ tags

2,616 questions with C++-related tags

Sort by: Updated
1 answer

How to see the messages associated with a custom control in Class Wizard for an MFC application?

I have a custom control that defines several notification messages but these are not displayed in the Class Wizard in Visual Studio 2022. See the empty listbox "Messages" in this screen capture of Class Wizard: How does the Class Wizard know…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-28T14:35:17.5066667+00:00
Juan Dent 206 Reputation points
commented 2023-01-29T00:03:46.68+00:00
David Lowndes 4,231 Reputation points Microsoft MVP
0 answers

In MFC for a custom control: how do I define notification messages so Class Wizard recognizes them?

For an MFC custom control, how does one define notification messages sent to the parent's window so that these messages appear in Class Wizard so that we can respond or handle them?

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.
2,616 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 questions
asked 2023-01-28T20:49:41.57+00:00
Juan Dent 206 Reputation points
commented 2023-01-28T21:14:55.26+00:00
Juan Dent 206 Reputation points
4 answers

Why will using any help function in my 64-bits executable kill this executable by an exception and simply execute its duty in an exactly the same 32-bits executable?

In or just before 2020 I detected this problem, described it and asked for help. Even some people recognized it. But no solution was offered and even the future was referenced. Now I have finished developing my project there will remain this ashtonishing…

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.
2,616 questions
asked 2023-01-25T16:43:59.06+00:00
Ton Epskamp 11 Reputation points
commented 2023-01-28T17:31:26.99+00:00
RLWA32 28,531 Reputation points
1 answer One of the answers was accepted by the question author.

How to make cursor pointer hidden?

Hi, Is there any way I can access this feature? I want to make visible or hidden (indicator) manually in certain time period. what I can find to this is this post but using the registry doesn't seem to have an immediate effect. Thanks you.

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.
1,888 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.
2,616 questions
asked 2023-01-28T10:44:16.65+00:00
DangDKhanh-2637 706 Reputation points
commented 2023-01-28T13:56:59.96+00:00
DangDKhanh-2637 706 Reputation points
1 answer

VS C++ converting int to char (string)

Hello. I have a problem with such thing. Output is as show at the bottom of page. Can anyone know how to show text inside the edit window as number? (and how to get a number from window as text) Help pages on the internet are not readable. The output is…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-28T11:40:41.69+00:00
Wojciech Sobiesiak 21 Reputation points
answered 2023-01-28T12:25:18.37+00:00
Viorel 82,381 Reputation points
1 answer

Bound ComboBox within a page and frame not working as expected - WinUI 3

Hi, i have a bound ComboBox which i've already posted here. I'm adding a separator by a TemplateSelector but to disable the separator, I have to iterate the ComboBoxItems in the Tapped event and set the IsEnabled property to false. This has to be…

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.
430 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.
2,616 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.
556 questions
asked 2023-01-24T18:47:43.97+00:00
youki 846 Reputation points
answered 2023-01-28T07:56:21.9066667+00:00
youki 846 Reputation points
0 answers

How to see branch-misses and cache misses in Visual Studio 2022 C++?

In linux, we have "perf" command to see branch-misses. On windows, is there a corresponding tool to see branch-misses and cache misses of a C++ program?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-28T02:57:52.46+00:00
卉航 林 0 Reputation points
edited the question 2023-01-28T02:58:16.8366667+00:00
卉航 林 0 Reputation points
1 answer

如何修改驱动配置文件inf 实现跟虚拟机的双机调试

我是个新人,第一次学习开发驱动,教程里配置驱动的inf文件后可以实现管道跟虚拟机进行连接从而在visual Stdio里面调试驱动代码,但是我实际测的时候,inf 文件一直是个障碍,查了很多资料,单纯删除inf文件就可以编译驱动,但是我要实现的是双机调试,,然后我按照默认的inf去进行双机调试则一直提示部署错误并显示这个破玩意 Please select a valid target machine for deployment from the project property…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,904 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.
2,616 questions
Windows 10 IoT Core
Windows 10 IoT Core
An Azure subscription offering that provides the essential services needed to commercialize a device on Windows 10 IoT Core.
232 questions
asked 2023-01-27T18:35:08.68+00:00
白嫖怪 0 Reputation points
answered 2023-01-27T20:11:35.4333333+00:00
Telen Wang 160 Reputation points
3 answers

CaptureEngine Error 0x80070005 (access is denied)

Hi all, I'm trying the CaptureEngine example from the classic examples but I got the error : MF_CAPTURE_ENGINE_EVENT: {219992BC-CF92-4531-A1AE-96E1E886C8F1} (hr = 0x80070005) Ausnahme ausgelöst bei 0x76B1CA42 (KernelBase.dll) in…

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.
1,888 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.
2,616 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,240 questions
asked 2022-08-19T12:32:27.483+00:00
the_real_boiler 21 Reputation points
answered 2023-01-27T15:04:14.7066667+00:00
Tony 61 Reputation points
2 answers

Windows HLK "DXGI Gamma Ramps" test crashes

Hello everyone. I have a problem running "DXGI Gamma Ramps" test with Windows HLK Studio to test my display miniport driver. When I run it, DXGIGammaVM.exe, which contains tests, crashes with Access Violation (0xc0000005). I can also see the…

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.
2,616 questions
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.
125 questions
asked 2023-01-25T08:45:44.4633333+00:00
Aliaksei Kaziukovich 0 Reputation points
answered 2023-01-27T14:23:38.1566667+00:00
Aliaksei Kaziukovich 0 Reputation points
1 answer

Windows Portable Devices can't re-create directory after deletion

Hi, I am using the documentation provided here: [https://learn.microsoft.com/en-us/windows/win32/wpd_sdk/wpd-application-programming-interface to create an interface to portable devices (Android device and memory sticks). I have implemented the provided…

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.
2,616 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.
1,888 questions
asked 2023-01-26T16:19:53.83+00:00
Guillaume Doucet 0 Reputation points
commented 2023-01-27T12:18:52.3666667+00:00
Guillaume Doucet 0 Reputation points
2 answers

Error loading design. C++ Winform

Hi, I am not able to load the design of a form, but the program works perfectly. It gives error object reference not set to instance of an object. But it doesn't show what error, line, etc. How to see the design again? Tkd

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-26T17:35:46.89+00:00
José Carlos Souza 201 Reputation points
commented 2023-01-27T11:41:22.2466667+00:00
José Carlos Souza 201 Reputation points
2 answers

Using JNI without having to add jvm.dll path inside Environment Variables (User or System)

In order to use JNI, you have to add inside Environment Variables (User or System) the path to were jvm.dll is located. You have a few ways to do that, but it is possible. But, is there a way to not have to add the path inside Environment Variables and…

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.
2,616 questions
asked 2023-01-26T07:34:19.5333333+00:00
sValentin 1 Reputation point
edited a comment 2023-01-27T09:10:25.3533333+00:00
sValentin 1 Reputation point
1 answer

how to change font of dialog title in mfc application

I want to change font of all the dialog elements of a MFC application including menu and title bar, without effecting icons and close button on the title bar. overriding WM_NCPAINT requires title bar to be repainted. is it posible to change only font of…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-27T08:35:33.4466667+00:00
Roshni 21 Reputation points
answered 2023-01-27T08:47:49.98+00:00
Castorix31 65,246 Reputation points
0 answers

Why does malloc memory fail on Windows x64?

0 In a windows x64 c++ program, a function will malloc 400M of memory each time it enters and then release it at the end. This function will be called continuously in the program. There is almost no memory leak in the whole program, and the computer has…

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.
2,616 questions
asked 2023-01-26T03:07:09.58+00:00
卉航 林 0 Reputation points
commented 2023-01-27T08:26:44.28+00:00
RLWA32 28,531 Reputation points
1 answer

Windows security popup not shows in secure desktop

I have created one webview2 based application to support multifactor-authentication(MFA). I am trying to implement this in secure desktop(new desktop). When I tried to trigger MFA sign in, after launching the application in secure desktop, windows…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,904 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.
2,616 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,132 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,330 questions
asked 2021-12-01T12:54:43.767+00:00
Jyothi R 6 Reputation points
commented 2023-01-27T08:20:11.4+00:00
RLWA32 28,531 Reputation points
4 answers

Microsoft Visual C++ Redistributable for Visual Studio 2019

Do I need a license to install Microsoft Visual C++ Redistributable for Visual Studio 2019? I need this for one of the python libraries that I need for a project. My corporate IT team says they don't have license for Microsoft Visual C++…

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.
2,616 questions
asked 2020-09-14T09:23:05.067+00:00
Mridul Bhardwaj 1 Reputation point
answered 2023-01-26T14:56:14.9866667+00:00
occ 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to remove the handle.

wv1().CoreWebView2().NavigationCompleted({this, &MainWindow::Wv1_NavigationCompleted }); how to remove &MainWindow::Wv1_NavigationCompleted handler. tags :winui3/winrt/webview2

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.
2,616 questions
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.
430 questions
asked 2023-01-26T06:58:28.81+00:00
chen chen 20 Reputation points
commented 2023-01-26T09:31:06.1266667+00:00
chen chen 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix c++ Compiler Error C2483 in managed code

And I also defined unmanaged

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.
2,616 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
289 questions
asked 2023-01-26T05:11:08.6633333+00:00
Ero Min 21 Reputation points
accepted 2023-01-26T08:58:15.8366667+00:00
Ero Min 21 Reputation points
0 answers

How can I resolve debug error?

I used visual studio to code c++. How can I fix this error? My code #include <iostream> #include <fstream> #include <string> int main() { using namespace std; string filename =…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 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.
2,616 questions
asked 2023-01-26T06:56:33.25+00:00
주열 박 0 Reputation points
commented 2023-01-26T08:49:05.95+00:00
Minxin Yu 3,091 Reputation points Microsoft Employee