3,742 questions with C++-related tags

Sort by: Updated
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,742 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
commented 2024-10-18T15:51:21.07+00:00
Ming Yu 0 Reputation points
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,901 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,742 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

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://learn.microsoft.com/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,634 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,742 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-18T10:46:30.59+00:00
KKL 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,142 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,742 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,163 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,724 questions
asked 2024-10-16T21:32:58.7566667+00:00
Julius 0 Reputation points
answered 2024-10-18T09:30:59.86+00:00
Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
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,427 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,634 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,742 questions
asked 2024-10-11T14:56:22.9666667+00:00
Mehul Donga 0 Reputation points
commented 2024-10-18T08:19:48.54+00:00
Mehul Donga 0 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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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,742 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-18T06:44:11.31+00:00
Tianyu Sun-MSFT 30,821 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,742 questions
asked 2024-10-17T16:25:28.3566667+00:00
Michael Jew 0 Reputation points
edited the question 2024-10-18T06:42:23.12+00:00
Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
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,634 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,742 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,724 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,576 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,742 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,576 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,634 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,742 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,142 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,742 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,917 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,427 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,742 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,742 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,821 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,142 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,742 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,016 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,742 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.
999 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,821 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Can we use both WinUI3 controls and Win32 controls in a WinUI3 application?

Hi, I'm using WinUI3 application, As we can extract HWND from WinUI3 window, and we can attach Window Proc with SetWindowSubclass and manage WM_* messages, I was wondering if we can use Win32 controls and WinUI3 controls at the same time. I was…

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.
787 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,634 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,742 questions
asked 2022-12-05T06:13:30.36+00:00
Harshithraj1871 1,536 Reputation points
edited a comment 2024-10-15T08:06:23.9266667+00:00
Shyam Butani 235 Reputation points
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,634 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,742 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,724 questions
asked 2024-10-01T07:31:51.6766667+00:00
Arif Waqas 0 Reputation points
commented 2024-10-15T03:21:32.87+00:00
Roy Li - MSFT 33,366 Reputation points Microsoft Vendor
1 answer

How to make XAudio2 throw a Device Lost flag/error?

Hi, I was wondering how I can produce a Device Lost message for XAudio2. I tried using the dxcaps -forcetdr command in the Developer Command Prompt window for Visual Studio, but it did not work. I am using C++ and programming for Windows 10. Derek

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,634 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,742 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
commented 2024-10-15T03:20:15.9533333+00:00
Roy Li - MSFT 33,366 Reputation points Microsoft Vendor
1 answer

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,742 questions
asked 2024-10-14T08:29:54.37+00:00
Flaviu_ 991 Reputation points
commented 2024-10-15T02:40:44.5033333+00:00
Minxin Yu 11,756 Reputation points Microsoft Vendor
2 answers

Microsoft Visual C++ X64 Minimum Runtime Error, (Not Installing. Missing the .MSI file.)

Receiving this error when trying to install VC_redist.x64 (2).exe C:\ProgramData\Package Cache{221D6DB4-46E2-333C-B09B-5F49351D0980}v14.13.26020\packages\vcRuntimeMinimum_amd64\

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,742 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,163 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,724 questions
asked 2024-10-05T17:11:44.6266667+00:00
Gary 0 Reputation points
answered 2024-10-14T15:03:03.1766667+00:00
Mohammad Sartaj Khan 75 Reputation points