3,758 questions with C++-related tags

Sort by: Updated
1 answer

Problems with passing Binary as a table-valued parameter

I'm using table-valued parameters to pass binary values. I used SQLBindParameter and passed the values as SQL_C_BINARY, SQL_BINARY, BinarySize, etc. as the arguments, but when I run SQLExecute, I get an error or the result is different from what I…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,971 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,758 questions
asked 2024-11-06T01:19:40.36+00:00
Kwan 0 Reputation points
commented 2024-11-06T09:38:39.75+00:00
Rodger Kong 270 Reputation points
1 answer

WxWidgets App build Error Visual Studio 2019

I built a wxwidgets c ++ program with visual studio 2019, on my pc there were no problems, but when i tried to start it on another pc i got a missing libraries message. I searched the internet and was advised to change the code generation settings from…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,187 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,758 questions
asked 2021-05-26T09:10:19.387+00:00
Filippo Taurian 1 Reputation point
answered 2024-11-06T07:22:33.9633333+00:00
rostanchase 0 Reputation points
0 answers

DXGI_ERROR_ACCESS_DENIED when trying to draw a triangle with DirectX 12

So, I'm currently working on drawing a triangle with DirectX 12 and making some helper functions for myself, but CreateCommitedResource keeps failing with DXGI_ERROR_DEVICE_REMOVED and the removal reason being DXGI_ERROR_ACCESS_DENIED. I've been…

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,649 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,758 questions
asked 2024-10-02T23:56:28.9766667+00:00
CakeDev 70 Reputation points
commented 2024-11-06T07:09:02.53+00:00
Roy Li - MSFT 33,371 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,649 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,758 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,869 questions
asked 2024-10-16T14:45:32.1733333+00:00
HenningD 0 Reputation points
commented 2024-11-06T07:05:05.0066667+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
0 answers

Decryption failure error with crypt32.dll, CertGetSubjectCertificateFromStore API

We have an application which transfer EDI documents using AS2 protocol where when our business partner and send data to us, we can’t decrypt it. We are reading the certificate from windows certificate store using CertGetSubjectCertificateFromStore api…

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,649 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,758 questions
asked 2024-10-25T09:51:58.47+00:00
Mehul Donga 0 Reputation points
commented 2024-11-06T07:03:20.35+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
1 answer

C++ Visual Studio 2022 #include trouble

Good day! I've a trouble with my Visual Studio 2022. When I trying to include a file from project directory by using #include "test.h" an intellisense is displaying an all files from other includes (like winapi and C++ files) It's a not problem…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,187 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,758 questions
asked 2024-11-03T18:49:53.35+00:00
La Psychose 0 Reputation points
commented 2024-11-06T01:33:25.34+00:00
Tianyu Sun-MSFT 31,166 Reputation points Microsoft Vendor
2 answers

Is Microsoft plans to support "Dark Mode" in its own application

Hi, ALL, More and more people are switching to use "Dark Mode". However, it looks like native Windows applications are not supporting "Dark Mode" as they use different coloring scheme. Does MS have plans to update…

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,758 questions
asked 2023-01-05T17:02:43.327+00:00
Igor Korot 6 Reputation points
commented 2024-11-05T20:22:05.4266667+00:00
ChuckieAJ 96 Reputation points
1 answer

Issues with GetAppLicenseAsync in MFC C++ Application.

In the application, there is an MFC project and a Windows Runtime Component (Universal Windows) project, see my previous question…

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,758 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.
344 questions
asked 2024-10-31T21:24:39.75+00:00
Ming Yu 20 Reputation points
commented 2024-11-05T03:02:48.59+00:00
Ming Yu 20 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,758 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,004 questions
asked 2024-10-08T05:33:44.63+00:00
Gaurav Sharma 0 Reputation points
commented 2024-11-04T08:54:41.09+00:00
Mathieu Gauthier 0 Reputation points
0 answers

How to Access and Reconstruct HBITMAP Data from a Debugged Process?

I am developing a Visual Studio 2022 extension to extract HBITMAP objects from the memory of a debugged process for analysis. Ideally, I want to access and reconstruct (when necessary) the raw bitmap data directly, without needing to convert each…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,187 questions
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.
11,005 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,758 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
asked 2024-11-04T01:34:23.8833333+00:00
Cesar 20 Reputation points
commented 2024-11-04T02:38:05.31+00:00
Cesar 20 Reputation points
0 answers

How can I use the ID2D1DeviceContext interface in an MFC Direct2D application?

I am using Direct2D in a Visual C++ (Visual Studio 2022) MFC application that uses many of the Direct2D MFC classes. I need to use the ID2D1DeviceContext interface for various purposes. The MFC classes force you to use either ID2D1HwndRenderTarget or…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,187 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,758 questions
asked 2024-11-02T11:31:51.59+00:00
simonx 126 Reputation points
commented 2024-11-03T06:00:33.55+00:00
uncle_Kei 20 Reputation points
3 answers One of the answers was accepted by the question author.

Disabling autocompletion from anything else than Tab in VS 2022

Although I set "Default IntelliSense completion mode" to Tab-only in Text Editor/Advanced, Visual Studio keeps replacing text as I type with its first suggestion when I press e.g. space or dot. I do not want the editor to ever autocomplete…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,187 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,758 questions
asked 2024-06-18T09:34:12.84+00:00
Coco_l_asticot 20 Reputation points
commented 2024-11-01T20:35:33.68+00:00
Nemat Soleimani 0 Reputation points
3 answers One of the answers was accepted by the question author.

Visual Studio 2019 Unable to start program, the system cannot find the file specified

I am having a similar issue as this post. However, on build I have 0 errors, 0 warning, and 0 messages. I took a look at Project -> Properties but I do not seem to have a linker option (which appears to be a typical fix that others have used 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,758 questions
asked 2021-07-18T04:08:16.47+00:00
Isaac Tait 21 Reputation points
commented 2024-11-01T07:53:36.5966667+00:00
Morteza Baghlane 0 Reputation points
1 answer

Win32 Console Input: How to differentiate between 0xE0 as a Start-Of-Sequence and 0xE0 as the 1st byte of a UTF-8 sequence/as a codepage character?

I use _getch() for reading input character by character, but there seems to be no way to tell whether the next character still belongs to the last read character or not. It seems that there is no way to tell if a 0xE0 is the 1st of two bytes in 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,649 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,758 questions
asked 2024-10-28T21:25:39.0133333+00:00
RobinLe 0 Reputation points
answered 2024-10-31T15:23:56.9033333+00:00
Darran Rowe 1,031 Reputation points
2 answers

When this call AddPackageByUriAsync could fail?

Hi, I am trying to create an application in the mode of 'package with external location'. Now if we go via this mode, we need to fetch the package identity during runtime, right? So, the API that has been provided is AddPackageByUriAsync . I am…

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,758 questions
asked 2024-04-16T06:13:17.4366667+00:00
Rohan Pande 445 Reputation points
answered 2024-10-30T18:28:42.3233333+00:00
Ryan Knuth (MSFT) 0 Reputation points Microsoft Employee
1 answer

How to get policy value after set?

Hi, Is there a way to check if the state has been assigned? I tried this but the return value of v=11 DWMNCRENDERINGPOLICY v; auto k = DwmGetWindowAttribute(hwnd, DWMWA_NCRENDERING_POLICY, &v, 4); <- v return 11. BOOL v; auto k =…

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,649 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,758 questions
asked 2024-10-24T08:01:21.67+00:00
D.D.K-2637 966 Reputation points
commented 2024-10-30T12:06:48.6933333+00:00
D.D.K-2637 966 Reputation points
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,649 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,758 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
commented 2024-10-29T06:47:38.32+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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,758 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.
344 questions
asked 2024-10-17T17:29:05.5766667+00:00
Ming Yu 20 Reputation points
accepted 2024-10-29T04:33:35.9+00:00
Ming Yu 20 Reputation points
0 answers

Understanding the MFC File Explorer project generated by the Visual Studio application wizard

I recently asked Visual Studio 2019 to create a new project using the File Explorer template. After some support from this group, I was able to get to the point that I was able to navigate through the files system and see the content in the list…

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,758 questions
asked 2024-10-28T19:46:49.2133333+00:00
semicode 20 Reputation points
commented 2024-10-29T03:03:54.4333333+00:00
semicode 20 Reputation points
2 answers One of the answers was accepted by the question author.

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,187 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,758 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,166 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,869 questions
asked 2024-10-16T21:32:58.7566667+00:00
Julius 20 Reputation points
accepted 2024-10-28T18:06:14.2033333+00:00
Julius 20 Reputation points