3,719 questions with C++-related tags

Sort by: Updated
0 answers

How to fix "error:1C80006B:Provider routines::wrong final block length" in SQL Server ODBC client (Linux)

I'm trying to write C++ ODBC driver code to execute SQL statements from a Linux server. I keep running into errors such as: DIAG [08S01] [Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: [error:1C80006B:Provider routines::wrong final block…

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,771 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,719 questions
asked 2024-10-02T22:42:20.45+00:00
Tim Coleman 0 Reputation points
commented 2024-10-03T16:46:47.8933333+00:00
Tim Coleman 0 Reputation points
0 answers

how to use socket in thread?

I use socket in thread and edit some buffer or std::vector will cause critical error detected c0000374 when I use thread.detach(); yes I use socket to get data in while loop and If I do not do this how to get data ? So I have to use detach(even though I…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,049 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,719 questions
asked 2024-10-03T15:57:29.0766667+00:00
mc 4,476 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…

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,719 questions
asked 2024-10-02T23:56:28.9766667+00:00
CakeDev 50 Reputation points
commented 2024-10-03T14:23:17.33+00:00
Castorix31 85,116 Reputation points
0 answers

How to report an error

Help | Send Feedback | report a problem takes you here and if you close and press the "launch without visual studio" button you get taken to this link and round and round I go. Half a dozen people in my team have this :(

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,099 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,719 questions
asked 2024-10-03T13:23:04.1733333+00:00
Fosh, Tim 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to get the list of destinations mapped to my user? By destinations I mean network drives/locations.

Hi, I am currently trying to find a way to determine all the drives and network locations attached to my pc in cpp. For the Logical Drives I can use GetLogicalDrives(), I am looking for ways to get the list of network locations added. So, far I have…

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,378 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,719 questions
asked 2024-09-25T09:05:47.9266667+00:00
Ashok Aravind S N 20 Reputation points
accepted 2024-10-03T08:24:06.1966667+00:00
Ashok Aravind S N 20 Reputation points
1 answer

vs_BuildTools.exe installation crashes without error message

I am new to Visual Studio and C++ but need to install Visual Studio Build Tools. When I open "vs_BuildTools.exe", it gets very close to finishing its installation, but then it crashes without any error message. I have already tried a reboot.…

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,719 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,041 questions
asked 2024-10-02T02:16:06.4733333+00:00
sharky! 0 Reputation points
commented 2024-10-02T18:19:40.2466667+00:00
sharky! 0 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,609 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,719 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
asked 2024-10-01T07:31:51.6766667+00:00
Arif Waqas 0 Reputation points
commented 2024-10-02T03:02:59.8733333+00:00
Tong Xu - MSFT 2,456 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,609 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,719 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
answered 2024-10-01T09:14:14.06+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
0 answers

The older version of Microsoft Visual C++ X86 Minimum Runtime - 14.40.33810 cannot be removed. Contact your technical support group

Tried many times to install but says old version is still installed. Does not work. Need to install please help The troubleshooter tool did not work This If above troubleshooter tool doesn’t work, please try the method that shared by Brynne Stevens here…

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,719 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,041 questions
asked 2024-09-30T21:17:41+00:00
Daniel Da Costa 0 Reputation points
commented 2024-10-01T04:24:11.9566667+00:00
Tianyu Sun-MSFT 30,561 Reputation points Microsoft Vendor
0 answers

Regarding the matching rules for the includePath configuration option in CppProperties.json

The root directory of the project is D:\work\code\cpp-service. I configured it as follows: "includePath":…

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,719 questions
asked 2024-09-30T10:00:39.4433333+00:00
daqing wu 0 Reputation points
commented 2024-10-01T01:20:43.9033333+00:00
Minxin Yu 11,586 Reputation points Microsoft Vendor
1 answer

The older version of Microsoft Visual C++ X86 Minimum Runtime - 14.40.33810 cannot be removed. Contact your technical support group

Tried many times to install but says old version is still installed. Does not work. Need to install please help

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,719 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,041 questions
asked 2024-09-27T02:39:14.0633333+00:00
Daniel Da Costa 0 Reputation points
accepted 2024-09-30T21:13:52.24+00:00
Daniel Da Costa 0 Reputation points
0 answers

Red Squiggles CString

Hello, My project compiles everything well, there are red wavy lines in CString. Why is that? How do I delete 'IntelliSense features in C++' without deleting SVN Subversion? I can't just delete the .vs folder, then everything is gone. What is 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,719 questions
asked 2024-09-26T17:47:03.6133333+00:00
Noah Aas 440 Reputation points
commented 2024-09-30T19:15:44.32+00:00
RLWA32 45,476 Reputation points
0 answers

why it is faster or slower than it should be when I use sink writer to write sample?

When I use sink writer to write sample I find that it is faster or slower thank it shoude be. it is the example:https://github.com/ljzj2/testdemo1

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,609 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,719 questions
asked 2024-09-21T12:37:42.3333333+00:00
mc 4,476 Reputation points
commented 2024-09-30T08:03:07.5866667+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
0 answers

How to preview GDI+ images on Image Watch?

I'm trying to visualize on memory GDI+ images using the Image Watch extension, i requested support on this feature long time ago directly on the developercommunity it got a lot of upvotes but MSFT just market it as "under review". I tried to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,099 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,719 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.
214 questions
asked 2024-09-18T06:25:55.6733333+00:00
Leo Purktz 0 Reputation points
commented 2024-09-30T06:07:16.6833333+00:00
Tianyu Sun-MSFT 30,561 Reputation points Microsoft Vendor
1 answer

Why does IAudioClient::GetMixFormat return 8 channels audio even if the system's sound card only has two channels?

为甚么 IAudioClient::GetMixFormat return 8 channels audio ,扬声器实际上仅支持 2 声道 captureClient->GetMixFormat(&m_wfex);

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,609 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,719 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
asked 2024-09-29T08:12:47.26+00:00
Yniar GL 0 Reputation points
commented 2024-09-30T02:52:04.0066667+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer

Visual C++ does not accept constexpr string while gcc can

Code: constexpr std::string cs{ "hello" }; GCC is happy with it but Visual C++ does not accept the constexpr string with error: error C2131: expression did not evaluate to a constant std::string is a literal class since C++20. Why can't…

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,719 questions
asked 2024-09-27T19:44:15.4433333+00:00
zzzhhh 40 Reputation points
edited an answer 2024-09-30T01:45:07.5633333+00:00
Minxin Yu 11,586 Reputation points Microsoft Vendor
2 answers

Win32 TreeView drag item flickering

I have a basic Win32 tree control I've implemented drag/drop with. The TreeView has been set to double buffer to avoid any flicker. The drag item is drawn no problem as I drag around. However in order to get correct drawing of the underlying view as…

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,609 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,719 questions
asked 2024-08-02T17:24:18.4833333+00:00
Robinson 146 Reputation points
commented 2024-09-28T16:11:05.3366667+00:00
Robinson 146 Reputation points
2 answers One of the answers was accepted by the question author.

C++17 changes N4268 Allowing more non-type template args

I have VS2019 ver16.11.40 (updated VS). I have sample C++ code accroding to C++17 changes Allowing more non-type template args: #include <iostream> template<double Value> constexpr double getFactorial() { return Value *…

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,719 questions
asked 2024-09-27T17:21:31.7933333+00:00
Ed Kurlyak 21 Reputation points
commented 2024-09-28T15:35:06.23+00:00
Darran Rowe 916 Reputation points
2 answers

Windows C++ : DocumentProperties() doesn't modify the print settings of StartDocPrinter()

Hello, I would like to print on two-sided (duplex), the complete code is here, can you reproduce it ? but my HP printer prints one sided. I allocated the correct size of buffer. like refer to the Doc:Modify printer settings with the DocumentProperties()…

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,719 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,613 questions
asked 2024-09-25T10:53:14.9533333+00:00
pol9595 0 Reputation points
commented 2024-09-28T10:02:31.74+00:00
Castorix31 85,116 Reputation points
1 answer One of the answers was accepted by the question author.

Map, IsAny methode exist

Hello, I have a map and would like to quickly check whether all entries are true. Are there any ready-made functions or approaches? In C# there is a LinQ query. IsAny. Is there something similar in…

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,719 questions
asked 2024-09-25T17:54:09.3+00:00
Noah Aas 440 Reputation points
accepted 2024-09-27T16:52:17.9833333+00:00
Noah Aas 440 Reputation points