3,693 questions with C++-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

how to create bitmap and draw text on it?

I know I can create bitmap using ID2D1DeviceContext and then how to draw Text on it? with out bind render target. I have bind the render target to my window.

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,332 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,592 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,693 questions
asked 2024-08-29T02:57:34.16+00:00
mc 4,436 Reputation points
accepted 2024-08-29T07:34:41.5066667+00:00
mc 4,436 Reputation points
0 answers

EvtSubscribe not returning signal when using pull subscription , what am i doing wrong?

I used the same code given in [Microsoft documentation] (https://learn.microsoft.com/en-us/windows/win32/wes/subscribing-to-events#pull-subscriptions) to collect logs in real-time by subscribing to the event source "Application" in the event…

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,592 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,693 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-08-28T06:21:33.9266667+00:00
Ajay Adithya Udayakumar 15 Reputation points
commented 2024-08-28T07:16:12.13+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
2 answers

Visual Studio 2022 C++ MFC is not installing

I am having trouble in installing C++ MFC component on Visual Studio 2022 professional as well as community editions. It installs C++ MFC component. But if I check again, C++ MFC is unchecked in the install list checkbox. I did this several times. But…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,693 questions
asked 2024-08-24T19:42:53.69+00:00
underflow 0 Reputation points
commented 2024-08-28T05:25:26.95+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to combine multi-IMFSample to one?

I have three IMFSamples and how to combine them to one? there will be three computers which run my program and they will push IMFSample to me. and I want to combine them to one. in to same screen.(same texture). split a texture into 3 and copy one to…

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,592 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,693 questions
asked 2024-08-19T01:07:55.5766667+00:00
mc 4,436 Reputation points
accepted 2024-08-27T23:53:38.93+00:00
mc 4,436 Reputation points
1 answer

Win32 TreeView drag item flickering

I have a basic Win32 tree control I've implemented drag/drop with. The TreeView has been set to double buffer to avoid any flicker. The drag item is drawn no problem as I drag around. However in order to get correct drawing of the underlying view as…

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,592 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,693 questions
asked 2024-08-02T17:24:18.4833333+00:00
Robinson 141 Reputation points
commented 2024-08-26T01:21:56.0633333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

how to create textbox (edit text) in win32?

how to create text box? I created window using CreateWindowEx with WS_CHILD and then set TextColor and SetBKColor but when I type something to it nothing happened.

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,693 questions
asked 2024-08-22T15:54:18.1666667+00:00
mc 4,436 Reputation points
accepted 2024-08-25T15:55:40.2233333+00:00
mc 4,436 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,424 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,693 questions
asked 2022-06-13T02:36:40.78+00:00
Yang Yang 46 Reputation points
commented 2024-08-25T00:36:39.4333333+00:00
Brian Johnson 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to modify the default configuration properties of a project?

I want to set up my default project property settings. When conducting my projects, I tend to modify the property settings, such as changing the output directory and intermediate directory. But it's so annoying to change every time. How can I modify the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,693 questions
asked 2024-08-23T05:27:39.2866667+00:00
w H 20 Reputation points
commented 2024-08-24T07:19:54.03+00:00
RLWA32 45,326 Reputation points
0 answers

LINK : fatal error LNK1318: Unexpected PDB error; 'LIMIT (12)'

This linker error is from building Unreal Engine with visual studio. LINK : fatal error LNK1318: Unexpected PDB error; 'LIMIT (12)' On packaging, I encountered this error.

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,693 questions
asked 2024-08-14T21:26:08.05+00:00
Gan Eric 0 Reputation points
commented 2024-08-24T00:47:46.4333333+00:00
Viorel 116.7K Reputation points
1 answer

SystemParametersInfoA SPI_SETDESKWALLPAPER does not always work?

I don’t know if I’m posting this in the right place… When using (C++) SystemParametersInfoA SPI_SETDESKWALLPAPER, for some reason does not always work.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 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,592 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,693 questions
asked 2024-08-07T18:59:03.72+00:00
Nick Pendragon 0 Reputation points
commented 2024-08-21T07:30:55.9266667+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to write C programs that can use long > 260 pathnames?

Hi, I have enabled Long Paths in the Group Policy Editor, rebooted, and tested this code: LPCWSTR fileEXT; fileEXT =…

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,693 questions
asked 2024-08-19T11:32:53.25+00:00
Robert Benaroya 20 Reputation points
commented 2024-08-20T12:40:35.3533333+00:00
RLWA32 45,326 Reputation points
0 answers

how to disable BTAGService automic register sco server after bluetooth device paired?

Hi, I am developing an bluetooth profile driver. I need resiger a sco server by BRB_SCO_REGISTER_SERVER. But i noticed that when a mobilephone paired with the laptop, the BTAGService automic register a sco server for this bluetooth devices, so i will…

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,693 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,610 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
92 questions
asked 2024-08-20T06:45:57.7933333+00:00
Xiaojie Ma 20 Reputation points
0 answers

How do I embed a manifest for a C project using the command line?

I have a project using VS 2022 compiler and linker within various scripts and makefiles. How do I embed a manifest with the link.exe 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,693 questions
asked 2024-08-19T17:02:58.8533333+00:00
Robert Benaroya 20 Reputation points
commented 2024-08-20T02:41:22.9233333+00:00
Robert Benaroya 20 Reputation points
2 answers

How to clear memory cached files programmatically with C++? Specifically Notepad cache?

Windows 11 Notepad is truly annoying! It keeps opening tabs with previous opened files. I don't want that! I only want to open Notepad with one empty tab. How can I avoid that? Or delete the cache memory with a C++ program? Or perhaps with a Notepad…

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,332 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,980 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,693 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-08-14T17:41:29.91+00:00
Ricardo N. Ponce 0 Reputation points
commented 2024-08-16T22:44:36.48+00:00
RLWA32 45,326 Reputation points
0 answers

How to handle identified Coverity issues within Microsoft MFC libraries

Hello Our Coverity 2023.6.0 scan identify Uninitialized scalar field and Uninitialized pointer field issues using a CMap MFC class which is defined in /%ProgramFiles(x86)%/Microsoft Visual…

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,693 questions
asked 2024-08-15T17:09:56.81+00:00
Daratha, Paul 0 Reputation points
commented 2024-08-16T14:37:10.1466667+00:00
Darran Rowe 916 Reputation points
3 answers

Determining GUI Capability on all Windows machines ?

I am trying to run a GUI application on Windows Server Core. Since only a PowerShell terminal comes over there and we can't run as some or other UI Libraries won't exist on that machine. I don't want to check via the Registry but is there something…

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,693 questions
asked 2024-08-09T06:53:27.1666667+00:00
Rohan Pande 445 Reputation points
commented 2024-08-16T12:01:33.42+00:00
Rohan Pande 445 Reputation points
6 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,592 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,693 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,610 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
answered 2024-08-15T08:05:35.23+00:00
MaoliWolf 0 Reputation points
2 answers

Using header units across projects of the same solution

Project A (a library) defines a header file that gets compiled to a header unit .ifc file. Project B wants to import said header from the referenced Project A, but cannot find it (error C7612: could not find header unit). The Project…

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,693 questions
asked 2024-08-08T09:43:18.96+00:00
Andre Meyer 0 Reputation points
commented 2024-08-15T06:02:54.9+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor
3 answers

Best C and C++ Code Obfuscator?

Hi, Which are most advanced obfuscators for C and C++ to protect code? Thanks

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,693 questions
asked 2023-02-10T06:23:26.4933333+00:00
Mann Alex 5 Reputation points
answered 2024-08-14T16:34:12.18+00:00
Rene Windegger 0 Reputation points
2 answers One of the answers was accepted by the question author.

How much work is involved to support Azure Web PubSub client in C++ Application?

Per the documentation, this service is built around WebSockets, which would, in theory allow applications, regardless of language, to add support via an existing WebSockets library. However, the posted Java/C#/Python examples all rely on Azure-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.
3,693 questions
asked 2021-07-01T02:55:31.097+00:00
Greg Tinney 121 Reputation points
edited an answer 2024-08-14T13:19:46.5366667+00:00
Zitong Yang 10 Reputation points Microsoft Employee