3,571 questions with C++-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How to use c++ 20 modules in shared libraries ?

Hello everyone, I am currently working on a test-project where I want to use shared libraries and I would like to leverage the new C++20 modules feature. However, I am having some difficulty understanding how to properly set up my code to use C++20…

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,571 questions
asked 2024-05-10T19:22:17.17+00:00
Michael Brunner 20 Reputation points
accepted 2024-05-13T07:24:51.6666667+00:00
Michael Brunner 20 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio debugger will not step into code of a separate project that builds to a dll (within the same solution)

I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll 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,571 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.
954 questions
asked 2024-05-09T23:39:57.78+00:00
jbl 20 Reputation points
commented 2024-05-11T18:26:04.8366667+00:00
jbl 20 Reputation points
1 answer

How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library

I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service. SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP…

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,455 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,571 questions
asked 2024-05-08T09:23:10.42+00:00
Shree (Contractor) 0 Reputation points
answered 2024-05-10T02:33:32.65+00:00
Xiaopo Yang - MSFT 11,661 Reputation points Microsoft Vendor
8 answers

Visual C++ vc_runtimeminimum_x64.msi Error

When trying to uninstall Visual C++ I get the following error: Here are the remaining versions of Visual C++ on my device: When trying to install the latest Visual C++ I get this error: I attempted to use the Program Install…

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,571 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.
982 questions
asked 2020-08-20T00:30:53.597+00:00
Will V 11 Reputation points
commented 2024-05-09T22:47:36.4266667+00:00
Lil1109 0 Reputation points
3 answers One of the answers was accepted by the question author.

Azure functions running 64 Bit native c++ dll

Hi Community, I reached out to Azure support via twitter and they suggested I post in here, for any help that might come my way. I have a .Net5 Isolated function that is running some proprietary c++ dll's, that I have compiled as 64 bit, these run…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,422 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,571 questions
asked 2021-07-25T10:14:26.913+00:00
Michael Pine 21 Reputation points
answered 2024-05-09T19:24:54.6633333+00:00
Hochgurtel, Brian D 20 Reputation points
2 answers One of the answers was accepted by the question author.

LoopbackCapture (`ActivateAudioInterfaceAsync` with `VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK` ), m_AudioClient->GetMixFormat failed with E_NOTIMPL

Hi, I use the applicationloopbackaudio-sample to record system audio, it works fine. However, the capture format is hard coded: // The app can also call m_AudioClient->GetMixFormat instead to get the capture format. // 16 - bit PCM format. …

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,455 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,571 questions
asked 2022-12-12T12:57:24.777+00:00
TianpingHsu 26 Reputation points
answered 2024-05-09T15:30:03.31+00:00
Tony 96 Reputation points
1 answer

Same Header File Is Different

Hello Folks: Developing on Windows 10, up to date Visual Studio Community 2022, C++. When building my application I occasionally see this error: The two header files that Visual studio is complaining about are the same file. Here is the text of 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,571 questions
asked 2024-05-06T18:03:25.1133333+00:00
a_unique_name 401 Reputation points
commented 2024-05-07T20:31:07.7066667+00:00
RLWA32 41,456 Reputation points
0 answers

Issues with afxres.rc

I have some MFC projects that have worked for many years, but suddenly I can no longer access resources from afxres.rc in any of them. For example, here's a simple test: CBitmap bitmap; BOOL success = bitmap.LoadBitmap(AFX_IDB_CHECKLISTBOX_95); assert(…

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,571 questions
asked 2024-04-23T10:44:51+00:00
JW 61 Reputation points
commented 2024-05-07T19:45:30.17+00:00
David Lowndes 2,445 Reputation points MVP
2 answers One of the answers was accepted by the question author.

Can COM use Excel as an in-process DLL?

Hello, I would to ask about Excel COM operation.  To connect to Excel from another C++ process is well established: #import "C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE11\\MSO.DLL"      #import "C:\\Program Files…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,368 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,555 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,571 questions
asked 2024-05-03T10:05:47.41+00:00
masterjodi 40 Reputation points
commented 2024-05-03T11:45:41.7533333+00:00
masterjodi 40 Reputation points
1 answer

Microsoft Visual Studio:the file cannot be found when running the program

After the compilation is successful, the file cannot be found when running the program. 在编译成功后,运行时找不到文件。 Display:(Chinese) Microsoft Visual Studio 无法启动程序“C:\Users\1vr_s\Desktop\passward\Project1\x64\Debug\Project1.exe”。 系统找不到指定的文件。 …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,729 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,571 questions
asked 2022-04-10T07:21:22.217+00:00
LtpLGM 1 Reputation point
commented 2024-05-03T10:14:16.0466667+00:00
zai liang 0 Reputation points
0 answers

How to use C++/WinRt API like as part of DLL without user interface(UI)

Hi, I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a DLL. However due to the tight coupling of this sample with the UI, I am not able to use below API independently within my DLL code, without…

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,455 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,571 questions
asked 2024-04-23T06:41:57.05+00:00
sunil maurya 21 Reputation points
edited the question 2024-05-03T07:27:35.8966667+00:00
Roy Li - MSFT 32,491 Reputation points Microsoft Vendor
0 answers

DCOM Interface Call fails with Kerberos

We try to move one of our current DCOM Applications that Impersonates a Client from NTLM over to Kerberos. So I tryed to get a minimal Example running. I Init the Server and Client as follows: CoInitializeSecurity(NULL, -1, NULL, NULL,…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,868 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,341 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,571 questions
asked 2024-05-02T16:34:09.79+00:00
TRoll 0 Reputation points
edited a comment 2024-05-03T01:40:24.2133333+00:00
Minxin Yu 10,441 Reputation points Microsoft Vendor
0 answers

Application built on Windows 11 does not start

When I built my Qt (6.8) application using MinGW 11.2 compiler toolchain, I get a pop up error message: The application was unable to start correctly (0xc00000ba). Click OK to close the application. Same issue occurs when built for Qt 6.7 and same…

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,571 questions
asked 2024-05-02T18:41:08.63+00:00
Kat Nellayappan 0 Reputation points
commented 2024-05-03T01:37:09.13+00:00
Minxin Yu 10,441 Reputation points Microsoft Vendor
0 answers

Unkillable app in NtGdi DestroyAllocation2 after d3d11.dll Flush() when running for multiple days

Hello, we have an issue with a d3d11 software we develop in C++ for years. After running for multiple days, usually over 40 hours, we get a hang in win32u.dll!NtGdiDdDDIDestroyAllocation2() after we try to close the application. The process becomes stuck…

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,571 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,560 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,497 questions
asked 2024-05-02T13:35:00.2133333+00:00
Richard Hachem 0 Reputation points
edited the question 2024-05-03T01:24:58.92+00:00
Minxin Yu 10,441 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

After update to VS 2022 17.8.5, from 17.0.6, I get Exception thrown at ntdll.dll immediately on debug

My project builds with normal warnings. I turned on Code Analysis on Build, but nothing improved the situation. After update to VS 2022 17.8.5, from 17.0.6, I get these errors when debugging or starting my project: Exception thrown at 0x00007FFE55B0E1E0…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,729 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,571 questions
asked 2024-01-18T16:47:28.0466667+00:00
Dahl, Oskar 20 Reputation points
commented 2024-05-02T18:25:37.27+00:00
Johan Dahlin 1 Reputation point
2 answers One of the answers was accepted by the question author.

Any sample code in C/C++ to Publish and Subscribe to Azure Web PubSub?

I am looking for sample C/C++ code to Publish and Subscribe to Azure Web PubSub. Specifically, I want to send data from a microcontroller programmed in C/C++ to a server with Azure Web PubSub. Are there any resources available that could help me achieve…

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
67 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,571 questions
asked 2024-05-01T10:49:20.29+00:00
Williams Celis 30 Reputation points
accepted 2024-05-02T07:56:22.77+00:00
Williams Celis 30 Reputation points
4 answers

How do I stop Microsoft Defender Smartscreen blocking my app?

I am a software developer. I write and sell a (Visual C++) software product. I have just released a new version of my software. First in years. Customers buy a licence and download the software from the Internet. I've had my share of false positives…

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
277 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,571 questions
asked 2020-12-09T21:08:46.527+00:00
simonx 126 Reputation points
edited a comment 2024-05-01T22:51:40.41+00:00
Louis Kessler 16 Reputation points
0 answers

How to Covert .stl file to .jpg file.

I want to convert a .stl file to a .jpg file, and the .stl file has a face with numbers and letters. I want to find the face through code and convert it to an image. It would be best to use C++ or C#.

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,423 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,571 questions
asked 2024-05-01T05:03:56.9233333+00:00
Pearl Ding 80 Reputation points
commented 2024-05-01T09:27:04.3466667+00:00
Hui Liu-MSFT 44,631 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to change lockscreen wallpaper by using Windows SDK (C++) or modifying registry?

Hi all. My Windows version is Windows 10 22H2 19045.2846, and I'd like to change my lockscreen wallpaper by using Windows SDK (or dll function), but I can't find any function for it. I want to get a function, which is equal to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,868 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,455 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,571 questions
asked 2023-05-09T04:03:47.9333333+00:00
Jiakang Li 20 Reputation points
edited an answer 2024-04-30T08:05:16.2366667+00:00
Anonymous
0 answers

Error C3640 in VS22 DLL project

No matter what I try I keep getting a C3640 Error: Error C3640 'DllMain::IslandPortal31::~IslandPortal31': a referenced or virtual member function of a local class must be defined Hopeing someone can help Header File #ifndef __ISLANDPORTAL31_H #define…

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,571 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.
954 questions
asked 2024-04-28T07:39:03.8933333+00:00
Copycat 0 Reputation points
edited a comment 2024-04-30T02:22:12.95+00:00
Minxin Yu 10,441 Reputation points Microsoft Vendor