3,617 questions with C++-related tags

Sort by: Updated
1 answer

how to resize swapchain?

I am using Direct2D D3D11CreateDevice ` hr = d2dFactory->CreateDevice(dxgiDevice, &device); hr = device->CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &ctx);` DXGI_SWAP_CHAIN_DESC1 swapChainDesc = { 0 }; swapChainDesc.Width =…

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,502 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,617 questions
asked 2024-07-07T08:32:10.0766667+00:00
mc 4,026 Reputation points
commented 2024-07-08T16:56:34.5266667+00:00
Darran Rowe 561 Reputation points
0 answers

how to perform tomographic wifi sensing using wifi adapters in c++ and python

hello i would like to ask how to modify the following programs to use wifi adapters rather than sdr to perform tomographic wifi sensing in c++ or python. thanks very…

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,617 questions
asked 2024-07-07T12:51:42.51+00:00
tomographic wifi 0 Reputation points
commented 2024-07-08T16:07:40.98+00:00
tomographic wifi 0 Reputation points
0 answers

How do I fix Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.40.33810?

I have been having an issue on my widows 11 pro. I have been using the PC for a few years now, and all of a sudden when I tried to install a file from Steam a message appeared Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.40.33810 The feature you…

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,617 questions
asked 2024-07-08T13:19:38.22+00:00
MK 0 Reputation points
1 answer

Where to find correct version information using in C on Windows

I'm looking to programmatically find the correct version information for Windows using the "C" programming language. I've searched online with no luck. Does anyone know where I can find resources to help me achieve this goal?

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,006 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,502 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,617 questions
asked 2024-06-22T22:13:39.2533333+00:00
Thad T 26 Reputation points
commented 2024-07-08T07:20:54.7366667+00:00
Castorix31 82,846 Reputation points
1 answer

How do I save ID2D1Bitmap as a file?

Bitmap and text were output to DIALOG using Direct2D. I tried to make this rendered screen into a bitmap and save it as a file. But, I get D2DERR_WRONG_RESOURCE_DOMAIN. Is there a way to transform ID2D1Bitmap to IWICBitmap? My goal is to use GDI+…

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,502 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,617 questions
asked 2024-07-08T05:39:14.6833333+00:00
채문석(jim) 41 Reputation points
answered 2024-07-08T07:07:42.08+00:00
Castorix31 82,846 Reputation points
1 answer

Program crash when creating MagnificationAPI window in Windows 11

While executing the following statement, programs on the target computer crash without warning and without a runtime error pop-up box. hwndMag = CreateWindow(WC_MAGNIFIER, TEXT("IdtScreenMagnifierMag"), WS_CHILD | MS_CLIPAROUNDCURSOR |…

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,502 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,617 questions
asked 2024-07-05T04:07:40.6+00:00
RL Chen 230 Reputation points
answered 2024-07-08T03:15:39.3333333+00:00
RL Chen 230 Reputation points
1 answer

CRichEdit control Hyperlink color change not working

I have derived a class from CRichEdit and the control contains multiple hyperlinks. While every thing works as expected, customer wants to change the color of the hyperlinks to red. I tried many things, yet the hyperlink still shows in blue color. Here…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,828 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,617 questions
asked 2024-07-05T05:31:17+00:00
Harsh Shankar 0 Reputation points
commented 2024-07-08T03:01:58.8233333+00:00
Minxin Yu 10,791 Reputation points Microsoft Vendor
4 answers

Which project template

Windows 11, Visual Studio 2022 I am having trouble finding a web page that provides some basic comparisons of the different template types.  The current need is a simple GUI for some number crunching.  There will be no graphics or pictures.  There 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,617 questions
asked 2024-07-06T04:33:59.53+00:00
Bryan Kelly 321 Reputation points
commented 2024-07-08T02:04:38.7+00:00
Minxin Yu 10,791 Reputation points Microsoft Vendor
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,706 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,502 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.
10,582 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,617 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-07-08T02:00:19.47+00:00
Hongrui Yu-MSFT 785 Reputation points Microsoft Vendor
2 answers

Where is OpenGLES example for mobile?

https://video2.skills-academy.com/fr-fr/cpp/cross-platform/build-an-opengl-es-application-on-android-and-ios?view=msvc-170 Where is this template? I have updated the VS and installed all needed content? Where is the template project promised in this…

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,617 questions
asked 2023-01-07T03:08:26.43+00:00
Kamal Moustafa 1 Reputation point
edited a comment 2024-07-06T16:35:29.1433333+00:00
Adel Ben ahmed 0 Reputation points
1 answer One of the answers was accepted by the question author.

one or more re definition in c++?

struct IDXGIDevice1 *dxgiDevice (?dxgiDevice@@3PEAUIDXGIDevice1@@EA) already define in game.obj. this is my code: IDXGIDevice1* dxgiDevice = NULL; why?

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,617 questions
asked 2024-07-04T12:20:38.15+00:00
mc 4,026 Reputation points
commented 2024-07-06T14:33:38.64+00:00
RLWA32 42,551 Reputation points
2 answers One of the answers was accepted by the question author.

Launching Windows Applications using Voice Assistants

Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…

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.
747 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,502 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,617 questions
asked 2024-04-24T06:38:51.75+00:00
Rohan Pande 375 Reputation points
edited an answer 2024-07-04T14:43:43.1966667+00:00
Caozhi Li 0 Reputation points Student Ambassador
0 answers

Does URLDownloadToFile still work on a Windows 11 computer without Internet Explorer on it?

I have written a windows console program that uses the win32 URLDownloadToFile function. This then ran for a long time without any problems on a windows 11 machine. However, 2 months ago this PC was reinstalled and since then the program no longer works…

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,502 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,617 questions
asked 2024-07-04T07:03:02.5766667+00:00
valentin anderegg 0 Reputation points
commented 2024-07-04T11:06:27.4566667+00:00
valentin anderegg 0 Reputation points
1 answer

how to fix build\debug\outdebug does not exist

whenever I try to debug and run my code I keep getting a build\Debug\outdebug does not exist error for 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.
3,617 questions
asked 2023-04-16T17:48:19.5133333+00:00
Nicholas 5 Reputation points
commented 2024-07-03T20:54:12.1533333+00:00
Mahmoud Albashat 0 Reputation points
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,617 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,570 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
47 questions
asked 2024-05-22T01:22:02.8666667+00:00
Jingshan Song (Jingshan) 20 Reputation points
commented 2024-07-03T08:21:21.8066667+00:00
Hoàng Long Nguyễn 0 Reputation points
1 answer

How can I resolve the error "Microsoft Visual C++ 14.0 or greater is required" when installing p5 with pip?

I encountered the following error when attempting to install p5 with pip: "Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/". I have…

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,617 questions
asked 2024-06-30T09:10:29.1+00:00
Mean sereyphal 0 Reputation points
commented 2024-07-03T02:50:25.9633333+00:00
Minxin Yu 10,791 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

C++ Win32 fullscreen windows cause the taskbar, which is set to auto-hide, to not rise properly.

When a window is displayed full screen (or takes up the whole screen), the taskbar can't be raised (the user has set the auto-hide taskbar option), I don't want this window to cause this problem, is it possible to set up this window in C++ so that 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,006 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,502 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,617 questions
asked 2024-06-28T03:28:50.63+00:00
RL Chen 230 Reputation points
accepted 2024-07-02T14:23:24.7766667+00:00
RL Chen 230 Reputation points
1 answer One of the answers was accepted by the question author.

CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed under CERT_SYSTEM_STORE_LOCAL_MACHINE

I used Below program to retrieve the private key of "1-ksp-digitalid-MSKSP 27th June" certificate stored under LOCAL_MACHINE. It gives me error   0x80090016 i.e. Keyset does not exist error. On Properties you can see dialog saying that…

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,502 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,617 questions
asked 2024-06-27T12:55:24.3833333+00:00
Prafulla Shirke 20 Reputation points
accepted 2024-07-01T06:56:07.83+00:00
Prafulla Shirke 20 Reputation points
2 answers

how to fix please 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.
3,617 questions
asked 2024-06-29T02:46:33.57+00:00
ADRIAN 0 Reputation points
answered 2024-07-01T02:56:26.2333333+00:00
Minxin Yu 10,791 Reputation points Microsoft Vendor
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.
5,006 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,502 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,617 questions
asked 2024-05-10T14:33:43.0133333+00:00
Aditya Pingle 0 Reputation points
commented 2024-06-28T18:16:02.87+00:00
RLWA32 42,551 Reputation points