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…
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…
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…
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 :(
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…
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.…
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…
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
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…
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":…
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
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…
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
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…
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);
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…
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…
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 *…
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()…
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…