3,743 questions with C++-related tags

Sort by: Updated
0 answers

Crash issue from Microsoft official Win32 C++ custom WinRT XAML control tutorial

Build was ok, but got a crash after following the official Microsoft official Win32 custom WinRT XAML control tutorial https://zcusa.951200.xyz/en-us/windows/apps/desktop/modernize/xaml-islands/host-custom-control-with-xaml-islands-cpp: Clicking…

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,636 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,743 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.
812 questions
asked 2024-10-18T02:50:15.38+00:00
KKL 0 Reputation points
commented 2024-10-22T14:32:42.8466667+00:00
KKL 0 Reputation points
0 answers

CreateProcess on notepad.exe fails due to a crash in ApiSetHost.AppExecutionAlias.dll

Hi guys, First time I do a question here so hope it is in the right format. We have encountered a problem in which when calling CreateProcess() on notepad.exe fails due to a crash in ApiSetHost.AppExecutionAlias.dll. While have a couple of settings in…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,659 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,636 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,743 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,746 questions
asked 2024-10-22T10:03:03.6033333+00:00
Bram Nijenkamp 0 Reputation points
commented 2024-10-22T12:32:26.4266667+00:00
Bram Nijenkamp 0 Reputation points
0 answers

signature verification issue with crypt32.dll CryptMsgControl api

We have an application which transfer EDI documents using AS2 protocol where When we send data to one of our business partner and try to verify the signature of the MDN that business partner return to us and we can`t verify the signature of the MDN that…

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,442 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,636 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,743 questions
asked 2024-10-11T14:56:22.9666667+00:00
Mehul Donga 0 Reputation points
commented 2024-10-22T06:55:07.4133333+00:00
Mehul Donga 0 Reputation points
1 answer

System.AccessViolationException when adding a new item in Visual Studio using IVsProject.AddItem

I'm encountering a System.AccessViolationException while working in Visual Studio 2022. The error occurs specifically when I try to add a new UI or CLR item to a project using the IVsProject.AddItem() method. Below is the full exception log: Aplicación:…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,743 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,164 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,746 questions
asked 2024-10-16T21:32:58.7566667+00:00
Julius 0 Reputation points
commented 2024-10-22T06:18:49.5+00:00
Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
1 answer

Why is the code #import "a.exe" causing a compiler error C1084?

I have inherited some old code and I am trying to compile it in VS 2019. I am getting a compiler error that complains about this line: #import "C:\usr\tyx\com\PublishersIO.exe" no_namespace The error is: 2>c:\users\jew\onedrive -…

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,743 questions
asked 2024-10-17T16:25:28.3566667+00:00
Michael Jew 0 Reputation points
commented 2024-10-21T20:55:38.42+00:00
RLWA32 45,661 Reputation points
1 answer One of the answers was accepted by the question author.

Debugging in MFC code

I have the following code: CDBVariant var; std::unique_ptr<CRecordset> recordset = ... initialized recordset->GetFieldValue(i, var); And I got an error: I want to explore what is happen in CRecordset::GetFieldValue method, using debugging step…

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,743 questions
asked 2024-10-14T08:29:54.37+00:00
Flaviu_ 1,011 Reputation points
commented 2024-10-21T19:56:23.83+00:00
RLWA32 45,661 Reputation points
2 answers

Heur.AdvML.b virus detected by Norton on a newly compiled C++ console application in debug mode. The executable is marked as malware by several engines on virustotal.

Hi, I am trying to compile the following C++ program in Visual Studio 2019 community edition in debug mode. I am generating an x86 binary, but the problem exists with x64 binaries as well. #include <windows.h> #include <iostream> #include…

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,743 questions
asked 2021-11-03T12:16:42.507+00:00
ARV 1 Reputation point
answered 2024-10-21T14:58:20.47+00:00
Dave Turnbull 20 Reputation points
3 answers

Can't install Visual C++ 2008 Redistributable.

I don't know what is "Microsoft.VC90.ATL",and I can't find it on Microsoft.

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,743 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.
1,047 questions
asked 2024-10-15T14:43:36.08+00:00
Sky Walker 0 Reputation points
edited the question 2024-10-21T09:51:36.9866667+00:00
Tianyu Sun-MSFT 30,831 Reputation points Microsoft Vendor
1 answer

How can i check for /experimental:c11atomics flag inside code?

Hi Microsofters, I have a problem when compiling C code for more than 2 weeks to catch whether /experimental:c11atomics is set for msvc inside code. I tried checking for __STDC_NO_ATOMICS__ macro but in vain. Could anyone please give me any tip how to…

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,743 questions
asked 2024-10-09T13:45:25.4433333+00:00
Adam Satko 0 Reputation points
commented 2024-10-21T08:41:18.78+00:00
Minxin Yu 11,756 Reputation points Microsoft Vendor
0 answers

Why doesn't GetNameInfo win32 api resolve Chinese computer names on Windows 11?

0 I have a small lab based Active Directory environment with 3 devices. They have the following OS installed. DC running Windows Server 2022 hosting my AD server. 1.Endpoint running Windows 10 Pro (22H2 Build 19045.4780) [English US installation and…

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,636 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,743 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,746 questions
asked 2024-10-01T07:31:51.6766667+00:00
Arif Waqas 0 Reputation points
commented 2024-10-21T07:12:06.7233333+00:00
Tong Xu - MSFT 2,461 Reputation points Microsoft Vendor
0 answers

Issues with RequestPurchaseAsync in MFC C++ Application

An app has been published in the Partner Center, and an addon submission has been created. This is the addon subscription overview. In the application, there is an MFC project and a Windows Runtime Component (Universal Windows) project, as depicted…

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,743 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
340 questions
asked 2024-10-17T17:29:05.5766667+00:00
Ming Yu 0 Reputation points
edited a comment 2024-10-21T03:03:27.5433333+00:00
Minxin Yu 11,756 Reputation points Microsoft Vendor
0 answers

Zombie COM Surrogate (WinInetCacheServer) processes when running MAPI in a 64-bit MFC Application via Task Scheduler

I have a 32-bit C++ MFC Windows application that calls MAPI via the Windows MAPI API. Recently, I compiled the application to 64-bit, and it runs fine when launched manually. However, when I schedule the same 64-bit version to run via Windows Task…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,915 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,743 questions
asked 2024-10-11T05:58:27.6133333+00:00
Dave 171 Reputation points
commented 2024-10-18T12:50:13.1633333+00:00
Francois Kruger 0 Reputation points
0 answers

'SysListView32' Bug with multiple items selection: still not fixed in Windows 11 23H2

When I use our own 32 bit application, the mouse cursor still jumps to a corner when I do the lasso selection in a listview (click and drag a rectangle to select multiple listview items). From what I've found in the internet, the program might use a…

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,636 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,743 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,746 questions
asked 2024-10-16T14:45:32.1733333+00:00
HenningD 0 Reputation points
edited a comment 2024-10-17T11:43:29.3733333+00:00
RLWA32 45,661 Reputation points
3 answers

Issue with x64 and commctl32.dll

I am building a x64 project, i am using #pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df'…

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,743 questions
asked 2024-10-10T18:17:27.0866667+00:00
Bevan Thomas 20 Reputation points
edited a comment 2024-10-16T14:39:44.66+00:00
RLWA32 45,661 Reputation points
0 answers

Problem with HLSL shaders.

I'm working with D3D12, and I've run into another problem. I managed to fix my command list problem, but apparently something is going wrong with my shaders? My code currently is struct Vertex { DirectX::XMFLOAT3 position; // 3D position …

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,636 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,743 questions
asked 2024-10-05T14:22:18.94+00:00
CakeDev 50 Reputation points
commented 2024-10-16T13:43:49.61+00:00
CakeDev 50 Reputation points
1 answer

How to print the coverage report while using libfuzzer with MSVC?

While using libfuzzer with MSVC the coverage section is empty. Is there a way to print the coverage report with libfuzzer & MSVC?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 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,743 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,919 questions
asked 2024-10-08T06:08:05.8933333+00:00
Vishnu Gopalakrishnan 126 Reputation points
commented 2024-10-16T13:24:27.1+00:00
Vishnu Gopalakrishnan 126 Reputation points
1 answer One of the answers was accepted by the question author.

Conflict Between /MT and /MD When Using Windows.winmd with Third-Party Libraries

Hi everyone, I am currently working on a project using C++/CX that interacts with the Windows WinMD, specifically within the Windows.Management.Deployment namespace. I’ve encountered a compatibility issue related to the runtime libraries. The third-party…

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,442 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,743 questions
asked 2024-10-14T12:33:02.72+00:00
checkingrandom 226 Reputation points
accepted 2024-10-16T05:19:02.48+00:00
checkingrandom 226 Reputation points
1 answer

How to to fix this issue?

I tried downloading Visual Studio to my pc but I have this error popping up which I don't know how to fix. I've tried installing the package into my pc but it wouldn't complete. I've tried using the internet many times and asking a few people but it was…

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,743 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.
1,047 questions
asked 2024-10-08T17:54:45.4733333+00:00
Avva 0 Reputation points
edited an answer 2024-10-16T03:15:35.2666667+00:00
Tianyu Sun-MSFT 30,831 Reputation points Microsoft Vendor
0 answers

Universal Windows Platform (UWP) API Call from C native console application - crash

Hi! Based on Microsoft Universal Samples (https://github.com/microsoft/Windows-universal-samples) I've created a static library(.lib) for geolocating on Windows 10/11. The library is linked into a Windows console application (.exe). I've tried with…

Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 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,743 questions
asked 2024-10-15T13:03:17.6366667+00:00
test test 0 Reputation points
commented 2024-10-15T16:18:34.6566667+00:00
Darran Rowe 1,021 Reputation points
1 answer

Not able to debug c++ code on visual studio 2022

I am developing android application using c# and c++. my application uses c++ library. whenever I select c++ debugger in android project properties window and i run my app in debug then I get an error which is attached as image to this question. I…

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,743 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.
1,000 questions
asked 2024-10-08T05:33:44.63+00:00
Gaurav Sharma 0 Reputation points
edited a comment 2024-10-15T08:12:32.69+00:00
Tianyu Sun-MSFT 30,831 Reputation points Microsoft Vendor