3,548 questions with C++-related tags

Sort by: Updated
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,435 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,548 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,236 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,740 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,226 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,548 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,271 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,548 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,271 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,548 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,552 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,337 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,271 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,660 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,548 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.
64 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,548 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,548 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,332 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,548 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 40,866 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,740 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,435 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,548 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,548 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.
949 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,271 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

COM aggregation, "stabilization" AddRef/Release pair, necessary? (Don Box book)

To the excellent members of the COM team:   I have one question with the “stabilization” technique introduced in Don Box’s book.   In functions like FinalConstruct(), the outer object might create inner aggregation objects. These inner objects in turn…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,434 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,548 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,546 questions
asked 2024-04-29T07:02:22.5866667+00:00
masterjodi 40 Reputation points
accepted 2024-04-29T15:31:57.8+00:00
masterjodi 40 Reputation points
1 answer

How to fix app crash under Win11 in coremassaging.dll

Hello, I have created an application that displays 3D objects (step, iv, wrl, …). However the program crashes reproducibly, and the cause cannot be identified. Now it is unfortunately so that when debugging (Visual Studio debugger, Remote debugging,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,660 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,548 questions
asked 2023-08-24T10:57:26.8766667+00:00
Torsten Oestreich 0 Reputation points
answered 2024-04-29T13:24:39.8366667+00:00
SPIEGEL Hermann 0 Reputation points
4 answers

Visual Studio 2015 & 2017 doesn't recognize std

Hello, I've written simple piece of code which compiles and works perfectly on any other program which can compile and run C++, but when I try to run it from VS 2015 on my laptop or on VS 2017 from my other laptop, it won't build it - I get an error…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,660 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,548 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,340 questions
asked 2020-08-25T04:58:53.277+00:00
Elinor Ginzburg 106 Reputation points
answered 2024-04-29T08:35:34.7833333+00:00
dewasakti777 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to remove the context help icon from CFindReplaceDialog?

I am using a CFindReplaceDialog in my application. But, it displays the Context Help icon in the top right. How can I stop displaying this icon?

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,548 questions
asked 2024-04-28T21:48:26.19+00:00
ChuckieAJ 86 Reputation points
accepted 2024-04-29T06:56:00.4666667+00:00
ChuckieAJ 86 Reputation points
1 answer

Is the Visual C++6 free to use in enterprises ?

Hello Team, Do I understand correctly that Visual C++ 6 is free to use in enterprises? (I saw redistributable version is okay to use in enterprises. But I can't see the redistributable version of Visual C++ 6.0 in the MS website.) Thank you.

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,548 questions
asked 2024-04-01T19:41:26.7766667+00:00
UnsangLee 0 Reputation points
edited a comment 2024-04-27T15:30:55.53+00:00
kwikc 131 Reputation points
1 answer One of the answers was accepted by the question author.

Alternatives for the application to make it as a packaged application?

Hi, I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode. I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample…

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.
727 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,548 questions
asked 2024-03-13T04:17:56.3366667+00:00
Rohan Pande 315 Reputation points
commented 2024-04-26T00:06:10.75+00:00
Matthew Bonanno 1 Reputation point
1 answer

Windbg shows info dialog that it cannot open MFC code from devdiv.visualstudio.com

Windbg show this info dialog with below message when single stepping through MFC code: The file…

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,548 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.
949 questions
asked 2023-01-31T07:31:16.9433333+00:00
Dev Stability 7 Reputation points
edited the question 2024-04-25T06:24:00.65+00:00
Dev Stability 7 Reputation points
2 answers

How to fix error MSB4057 The target "ComputeLinkImportLibraryOutputsForClean" does not exist in the project

I am trying to make a game and everytime I build my solution this error pops up I am using the following NuGet Packages SDL SDL_image.h SOIL Box2D OpenAL.Soft GLM Boost I am also using the following libraries cpptoml FastNoiseLite ImGUI

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,660 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,548 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.
949 questions
asked 2024-04-12T08:55:52.2633333+00:00
Veritum 5 Reputation points
edited an answer 2024-04-24T13:55:45.03+00:00
Gordon Elliott 5 Reputation points
1 answer 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.
727 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,435 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,548 questions
asked 2024-04-24T06:38:51.75+00:00
Rohan Pande 315 Reputation points
accepted 2024-04-24T10:26:24.1966667+00:00
Rohan Pande 315 Reputation points
0 answers

Unknown error with WinBioEnrollCommit function in windows biometric framework

I am using the Windows Biometric Framework API and have encountered an error.I followed the onInstall() and onAdd() functions in tutorial #1, and then called the onEnrollOrPractice() function in tutorial #2. …

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,435 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,548 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,337 questions
asked 2024-04-22T16:43:35.3866667+00:00
Trần Ngọc Hiển 0 Reputation points
commented 2024-04-24T02:15:45.1333333+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor