3,440 questions with C++-related tags

Sort by: Updated
2 answers

Error code "exited with code -1073741819"

I copied my C code from one window and paste it to another window of VS2019, then i debugged the program and i got the message "Test.exe exited with code -1073741819". I am unable to run the program so please help me out.

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,440 questions
asked 2021-05-01T12:17:22.567+00:00
Anonymous
commented 2024-02-22T19:59:07.0533333+00:00
Mike Taves 0 Reputation points
1 answer

Disable hotkey "ctrl + alt + tab"

I tried to disable the hotkey "ctrl + alt + tab" with a LL keyboard hook,but looks like this key combination cannot be intercepted by LL keyboard hook. Is there any way I can disable it with 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,440 questions
asked 2024-02-21T04:46:40.5066667+00:00
Ash13 0 Reputation points
commented 2024-02-22T12:22:58.63+00:00
Minxin Yu 9,361 Reputation points Microsoft Vendor
1 answer

C4828 is now being flagged as an error with the latest update of VS2022 17.8.7 and i don't see it mentioned anywhere

Hello, I am noting that since I updated my Visual Studio 2022 to 17.8.7 that a project that had C4828 warning is now showing C4828 as an error, yet I haven't changed anything in terms of MSBuild settings. I searched the docs to see if I am having a local…

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,440 questions
asked 2024-02-21T18:57:19.1166667+00:00
Anton Khelou 0 Reputation points
answered 2024-02-21T19:09:50.8533333+00:00
Anton Khelou 0 Reputation points
0 answers

compositor clock api question

Waiting on the compositor clock is done by a call to DCompositionWaitForCompositorClock(), which looks like it is probably a wrapper around something like WaitForMultipleObjects() and some compositor event object(s). Wouldn't it have been better 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,352 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,440 questions
asked 2024-02-21T00:46:30.2833333+00:00
Geoff Hale 0 Reputation points
commented 2024-02-21T02:18:25.4+00:00
Jeanine Zhang-MSFT 8,316 Reputation points Microsoft Vendor
0 answers

How can my module handle files

I wrote a Module that works great. If the URL points to an actual file in the application folder, I would like the StaticFile module to stream it back to the browser. Otherwise I would have to build the file name from the URL and if it exists, read it…

Internet Information Services
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,440 questions
asked 2024-02-19T01:06:04.4066667+00:00
Roland Smith 1 Reputation point
commented 2024-02-20T13:16:59.03+00:00
Roland Smith 1 Reputation point
0 answers

Using an application manifest to disable window theming

According to application-manifests the disableTheming element is available. I added the necessary xml to my application manifest for a Win32 desktop application but it seems that disableTheming is ignored by the system. The xml that was added to the…

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,352 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,440 questions
asked 2021-08-06T16:09:04.423+00:00
RLWA32 38,856 Reputation points
commented 2024-02-20T09:46:46.0333333+00:00
RLWA32 38,856 Reputation points
1 answer

WebauthN c++ Native Windows API in credential provider

Hi team, I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key and platform Windows authenticator…

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,352 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,440 questions
asked 2024-02-19T11:39:47.02+00:00
VIGNESH M 0 Reputation points
answered 2024-02-20T02:42:44.0966667+00:00
Jeanine Zhang-MSFT 8,316 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to convert string contains characters like space?

Hi, I'm using the following code: DWORD hex_len = 1024; string value="abc def"; BYTE* buffer = new BYTE[hex_len]; if…

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,440 questions
asked 2024-02-19T05:46:11.16+00:00
DangDKhanh-2637 941 Reputation points
edited a comment 2024-02-19T11:54:53.3066667+00:00
DangDKhanh-2637 941 Reputation points
0 answers

System.IO.FileNotFoundException: Could not load file or assembly 'AppAssembly.dll' or one of its dependencies.

I complied a C++ CLI service using Release and x64. I then went into the x64\Release folder and copied everything over to the development server and tried to run the service only for it to tell me that the AppAssemly.dll is missing even though it is…

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,440 questions
asked 2024-02-16T20:42:18.9466667+00:00
Brown, Matt 6 Reputation points
commented 2024-02-19T09:53:47.79+00:00
RLWA32 38,856 Reputation points
2 answers One of the answers was accepted by the question author.

std::thread in MFC

It is ok to finish a MFC app while a std::thread is still working? Code: void CMyMfcView::OnLButtonDblClk(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default std::thread t(&CMyMfcDoc::SomeMethod,…

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,440 questions
asked 2024-02-15T19:00:11.5333333+00:00
Flaviu_ 831 Reputation points
accepted 2024-02-19T08:38:43.3566667+00:00
Flaviu_ 831 Reputation points
4 answers

Native C++ Module Example not working as advertised

I created a module based on this example. It is supposed to add an entry in the Event Log when the OnExecuteRequestHandler and OnPostExecuteRequestHandler events occur on 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,440 questions
asked 2023-12-21T19:21:00.9366667+00:00
Smith, Roland 40 Reputation points
answered 2024-02-19T00:55:58.7033333+00:00
Roland Smith 1 Reputation point
1 answer One of the answers was accepted by the question author.

How do i enable Visual styles

How Do I enable Visual styles when using MSYS2 MinGW-w64, in the simplest way, like how Qt Does it, I am strugglinng trying to enable visual styles in mingw-w64, i just cant find a way

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,352 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,440 questions
asked 2024-02-12T16:20:41.7866667+00:00
Diya Al deen 20 Reputation points
commented 2024-02-18T00:16:44.2366667+00:00
RLWA32 38,856 Reputation points
1 answer One of the answers was accepted by the question author.

Can we use UWP APIs for WinUI3 desktop Applications?

Hi, I am building a WinUI3 desktop application where I am looking for notifications. I have tried out the App Notifications which are part of Windows App SDK but I am currently looking into Badge Notifications. So, I found this Badge Notification…

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.
693 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,440 questions
asked 2024-02-16T09:34:58.17+00:00
Rohan Pande 165 Reputation points
commented 2024-02-17T04:57:10.0633333+00:00
Rohan Pande 165 Reputation points
1 answer

How to build a simple HelloWorld C++ console application and execute it on an Azure node?

Hi I would like to build a simple HelloWorld C++ console application in Visual Studio and execute it on an Azure node. Project Setup: I built the project in Visual Studio following the instructions provided in this documentation. I specifically aimed…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,788 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,403 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,440 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.
935 questions
asked 2024-02-16T22:54:04.6966667+00:00
Kelly Zhao 65 Reputation points Microsoft Employee
answered 2024-02-17T00:41:30.7666667+00:00
Kelly Zhao 65 Reputation points Microsoft Employee
0 answers

visual studio C++ starting with 478 errors in "external dependencies"

when i create a new C++ project, it starts with 479 errors in "external dependencies" when i run it, it askes if i would like to run the last successful build, if i select yes it errors with "unable to start program 'C:\users(my…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,403 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,440 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
908 questions
asked 2024-02-16T08:28:28.81+00:00
bob hamtom 0 Reputation points
commented 2024-02-16T13:54:02.02+00:00
Tianyu Sun-MSFT 24,891 Reputation points Microsoft Vendor
4 answers

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Hello, I'm trying install library web3. Unfortunatly the code ended with this error every time. error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":…

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,440 questions
asked 2020-10-23T09:13:16.433+00:00
Zaneta Rezkova 46 Reputation points
answered 2024-02-15T17:54:16.7366667+00:00
Bastin Bajiyo Job 0 Reputation points
1 answer One of the answers was accepted by the question author.

auto return type of a C++ function

My last knowledge of C++ is from 1997. I am now trying to understand 'modern' C++. I have created a new C++/WinRT project in VS 2022 and inserted the following code (If you see SQL or Yaml code, I didn't mark code as SQL or YAML): pch.h: #pragma once…

Universal Windows Platform (UWP)
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,440 questions
asked 2024-02-12T12:53:02.4666667+00:00
Heiko 1,191 Reputation points
edited a comment 2024-02-14T19:51:59.39+00:00
Viorel 109.8K Reputation points
1 answer

How can I get a list of all request headers in an IIS Module?

I'm writing an IIS Module in C++. My 'final' issue is how to get all headers (standard and custom) in a single string. The httpPlatformHandler module sends all headers & posted data to the configured exe so I would hope I could do it in mine. My…

Internet Information Services
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,440 questions
asked 2024-02-12T18:24:03.1866667+00:00
Smith, Roland 40 Reputation points
commented 2024-02-14T16:35:20.7166667+00:00
Lex Li (Microsoft) 4,242 Reputation points Microsoft Employee
1 answer

How to extract an icon from executable and save it on disk properly? Any lightweight library?

Is there something in c++? (Windows API/ WinRT) I've tried some solutions online and none of them work. I didn't find anything useful on Github either. I want to display the icons regardless of whether the exe is still there, so I want to save the icon;…

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.
693 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,352 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,440 questions
asked 2024-01-20T12:01:43.6833333+00:00
youki 991 Reputation points
commented 2024-02-13T22:57:39.4866667+00:00
youki 991 Reputation points
1 answer

Reading frames of a IMFSourceReader of a mp4 leaks memory

I'm processing all the frames of a large video in mp4 format (say 2Gb in 1280x576) . As I read the frames of the video, the memory consumed by the application keeps growing and growing, reaching 2Gb by the end of the video. Here is a minimal application…

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,440 questions
asked 2024-02-13T16:23:42.9766667+00:00
Juan Abadia 0 Reputation points
edited an answer 2024-02-13T18:26:17.4033333+00:00
Juan Abadia 0 Reputation points