3,681 questions with C++-related tags

Sort by: Updated
1 answer

Not able to reach even wWinMain in Windows Server Core Machine 2022

Hi, I am trying to run a C++ Win32 application with XAML Island as UI Library. I am able to run on normal desktop machines such as Windows 11 but when I try to run the same application on Windows Server core machine it failed and didn't even reach our…

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,575 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,681 questions
asked 2024-07-16T10:52:59.8866667+00:00
Shyam Butani 190 Reputation points
edited an answer 2024-07-16T14:38:43.69+00:00
Darran Rowe 766 Reputation points
1 answer One of the answers was accepted by the question author.

Help needed to retrieve the LogonType using Win32LogonSession class in C++

Hello, I am trying to use Win32LogonSession to retrieve the LogonType in my C++ code. However, I'm encountering several errors and I am unsure if I'm writing the correct code. Can anyone provide assistance? Thank 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.
2,575 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,681 questions
asked 2024-07-12T06:19:11.6866667+00:00
Rohan Pande 445 Reputation points
commented 2024-07-15T09:18:10.4633333+00:00
Rohan Pande 445 Reputation points
3 answers One of the answers was accepted by the question author.

Can't Call MASM functions from CPP?

I recently started to Learn x64 MASM. I'm using Visual Studio 2022. I wrote a simple function in assembly .. .code funcCall proc ret funcCall endp end I tried calling it from C++ file: #include <iostream> extern "C" int funcCall(int…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,025 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,681 questions
asked 2024-07-14T04:31:57+00:00
Hritik Shahi 20 Reputation points
answered 2024-07-14T09:09:58.7333333+00:00
Bhai ka rola 0 Reputation points
1 answer One of the answers was accepted by the question author.

Should I set `activeCodePage` to `UTF-8` on both an EXE and its DLLs?

I’m currently working on contributing to Descent 3. Specifically, I’m trying to make sure that Descent 3 uses UTF-8 everywhere. I’ve already confirmed that Descent 3 has at least one character-encoding-related bug, and I suspect that it has more. One of…

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,681 questions
asked 2024-07-11T12:37:35.5833333+00:00
Jayman 130 Reputation points
accepted 2024-07-13T12:12:39.3766667+00:00
Jayman 130 Reputation points
2 answers

Some doubts regarding after registering for WinUI3 packaged with external location app?

Hi, I was earlier creating a WinUI3 blank unpackaged app. Followed the steps here to make my solution from packaged to unpackaged application. In this project I have disabled the XAML code and created my own entry point (WinMain). Steps that I have…

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.
776 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,681 questions
asked 2024-04-18T11:28:49.1633333+00:00
Rohan Pande 445 Reputation points
edited an answer 2024-07-12T09:14:55.4166667+00:00
Darran Rowe 766 Reputation points
1 answer

How to fix "module was not instrumented." Reason:"path_is_excluded" error in Microsoft.CodeCoverage.Console tool?

I'm receiving the following problem while trying to instrument my dll with Microsoft.CodeCoverage.Console tool. module was not instrumented. Reason: path_is_excluded." I'm using Microsoft.CodeCoverage.A console tool for calculating code coverage.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,775 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,025 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,681 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
345 questions
asked 2024-06-13T06:50:10.2966667+00:00
R M 0 Reputation points
commented 2024-07-11T05:08:11.25+00:00
R M 0 Reputation points
1 answer One of the answers was accepted by the question author.

What is MSVC’s default execution character set?

According to MSVC’s documentation, I can use the /execution-charset option to change which execution character set a program uses. Let’s say that I don’t use the /execution-charset option. What execution character set will MSVC use by default? 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.
3,681 questions
asked 2024-07-09T23:31:29.6366667+00:00
Jayman 130 Reputation points
accepted 2024-07-10T17:58:06.3333333+00:00
Jayman 130 Reputation points
1 answer One of the answers was accepted by the question author.

GameInput issues with detecting input when Xbox controller is connected via bluetooth

Hi, I was following the tutorials on utilising GameInput, a component of GDK (from here https://video2.skills-academy.com/en-us/gaming/gdk/_content/gc/input/overviews/input-fundamentals) and noticed that if I have a controller connected via bluetooth 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.
3,681 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
84 questions
asked 2024-07-09T12:02:48.8133333+00:00
Alan Walker 20 Reputation points
accepted 2024-07-10T12:05:15.6966667+00:00
Alan Walker 20 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,266 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,575 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,681 questions
asked 2024-06-22T22:13:39.2533333+00:00
Thad T 26 Reputation points
commented 2024-07-09T13:50:28.56+00:00
RLWA32 44,926 Reputation points
0 answers

C++WinRT does not correctly handles Chinese characters using Windows.Foundation.Uri

I have a uri with Chinese character and query string that needs to be parsed with Windows.Foundation.Uri. Using C++WinRT, it always returns me an empty result. But equivalent C# code does returns me expected result. I have tried changing the file…

Universal Windows Platform (UWP)
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,815 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,681 questions
asked 2024-07-08T17:57:07.7366667+00:00
peter li 6 Reputation points
commented 2024-07-09T05:37:38.63+00:00
Junjie Zhu - MSFT 17,221 Reputation points Microsoft Vendor
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,681 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
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,575 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,681 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.
5,025 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,681 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 11,501 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,755 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,575 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,815 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,681 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-07-08T02:00:19.47+00:00
Hongrui Yu-MSFT 1,520 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,681 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,681 questions
asked 2024-07-04T12:20:38.15+00:00
mc 4,376 Reputation points
commented 2024-07-06T14:33:38.64+00:00
RLWA32 44,926 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.
776 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,575 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,681 questions
asked 2024-04-24T06:38:51.75+00:00
Rohan Pande 445 Reputation points
edited an answer 2024-07-04T14:43:43.1966667+00:00
Caozhi Li 0 Reputation points Student Ambassador
1 answer

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,575 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,681 questions
asked 2024-07-04T07:03:02.5766667+00:00
valentin anderegg 0 Reputation points
answered 2024-07-04T08:38:26.8066667+00:00
Jeanine Zhang-MSFT 9,586 Reputation points Microsoft Vendor
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,681 questions
asked 2023-04-16T17:48:19.5133333+00:00
Nicholas 15 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,681 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,601 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
84 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