3,978 questions with Developer technologies | C++ tags

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

Integrate CMDITabBar into MDI MFC app

I would like to use CMDITabBar (from WinMerge) into a MFC MDI test application. Here is the test app: https://1drv.ms/u/c/dedcb6ef190b8fd4/ESppBUOCT-hJog-OyL43QXsBooSUM0liWkY9PHAeQo1FBw?e=BeSIzC The code for integration (CMainFrame header): protected: …

Developer technologies | C++
asked 2025-07-10T10:45:15.25+00:00
Flaviu_ 1,031 Reputation points
commented 2025-07-11T16:39:16.47+00:00
Varsha Dundigalla(INFOSYS LIMITED) 155 Reputation points Microsoft External Staff
1 answer

Crash dumps are not created sporadically.

We have separate process built by us on utilizing the WER in the situation and creating the dump file in the path we configure. But sporadically, we see that WER has not reproted the issue and dump files are not created. Sometimes WER has reported and…

Developer technologies | C++
asked 2025-06-06T09:26:21.51+00:00
O V, Naveen 20 Reputation points
commented 2025-07-11T07:34:25.87+00:00
RLWA32 49,666 Reputation points
1 answer

E_ACCESSDENIED error when IStream::Seek on Stream created using CreateStreamOnHGlobal on Windows 11 24H2 client

Hello all, After days of debugging, I found I am getting E_ACCESSDENIED error on the server side (Windows Server 2022) when I try to seek to the beginning of a stream: `ULARGE_INTEGER lPos;` LARGE_INTEGER lZero; lZero.QuadPart = 0; auto hrTemp =…

Developer technologies | C++
asked 2025-07-02T05:35:11.58+00:00
Robert Bui 0 Reputation points
commented 2025-07-11T04:12:05.0866667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 155 Reputation points Microsoft External Staff
1 answer

getting blocker call for listen() in winRT component using httplib.h

Hi, I am using WinRT componet project. I have included httplib.h file I am creating object for server and calling the Get() I am calling listen() method but Its like a bloker call in winRT app. I have also tyied with thread but no luch. Kindly provide…

Developer technologies | C++
asked 2025-06-18T15:51:24.8566667+00:00
Arvind Kumar 20 Reputation points
commented 2025-07-11T03:40:43.41+00:00
Varsha Dundigalla(INFOSYS LIMITED) 155 Reputation points Microsoft External Staff
1 answer

Bitlocker using win 32 api

I have created a function inside my agent to apply bitlocker on a drive using win api, even though the execution is completed successfully the drives are not getting locked using bitlocker

Developer technologies | C++
asked 2025-06-17T09:35:03.1833333+00:00
Amal Krishna Jk 25 Reputation points
commented 2025-07-11T03:36:48.0266667+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 80 Reputation points Microsoft External Staff
1 answer

Could you explain why the _Hash class manages buckets using both lower and upper bounds?

Hello, First of all, I’d like to kindly ask for your understanding as I’m using a translation tool to write this message. While looking into the msvc C++ _Hash class, I came across something I didn’t fully understand, so I’m reaching out with a question.…

Developer technologies | C++
asked 2025-05-07T06:23:50.5233333+00:00
형진 김 20 Reputation points
commented 2025-07-11T03:35:15.8533333+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 80 Reputation points Microsoft External Staff
1 answer

Activate AddressSanitizer in Qt6

Hi all, I'm developing in Qt c++ under Windows and try to use AddressSanitizer within QtCreator. According to this blog from 2021 (https://devblogs.microsoft.com/cppblog/address-sanitizer-for-msvc-now-generally-available/) it should be possible. When I…

Developer technologies | C++
asked 2025-07-03T10:44:22.05+00:00
Jazzco 5 Reputation points
commented 2025-07-08T13:00:37.3633333+00:00
Varsha Dundigalla(INFOSYS LIMITED) 155 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

set VARAINT is not right?

I am using ms-media-foundation and want to set CODECAPI_AVLowLatencyMode VARIANT var{}; var.boolVal = VARIANT_TRUE; var.vt = VT_BOOL; error:WinRT originate error - 0x80070057 : 'Invalid argument (VT_UI4 != pValue->vt)' why?

Developer technologies | C++
asked 2025-07-04T12:40:55.1566667+00:00
mc 5,551 Reputation points
commented 2025-07-06T03:17:59.08+00:00
mc 5,551 Reputation points
1 answer One of the answers was accepted by the question author.

how to present ID3D11Texture2D using swapChain?

just set once RenderTargetView or present then release the rendertargetView and then again set the rendertarget view?OMSetRenderTargets or swapChain->GetBuffer?

Developer technologies | C++
asked 2025-07-03T14:39:07.43+00:00
mc 5,551 Reputation points
commented 2025-07-04T13:04:09.55+00:00
Varsha Dundigalla(INFOSYS LIMITED) 155 Reputation points Microsoft External Staff
0 answers

Why am I encountering a System.AccessViolationException in .NET Framework 4.8 on Windows Server 2019, but not in .NET Framework 4 on Windows Server 2008

I'm encountering the following error in .NET Framework 4.8 on Windows Server 2019, which I faced in 2022, when trying to select the element from ToolStripComboBox . However, I am unable to reproduce this error in .NET Framework 4 on Windows Server 2008:…

Developer technologies | .NET | .NET Runtime
Developer technologies | C++
Developer technologies | C#
asked 2024-11-29T12:12:15.3566667+00:00
Uke, Ashutosh 0 Reputation points
commented 2025-07-03T09:35:36.93+00:00
György Kőszeg 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do I fix this error?

argument list for class template "CUIAnimationCallbackBase" is missing template <class IUIAnimationCallback, class CUIAnimationCallbackDerived> class CUIAnimationCallbackBase : public IUIAnimationCallback { public: static…

Developer technologies | C++
asked 2025-06-28T20:08:39.41+00:00
CDev-8220 385 Reputation points
accepted 2025-07-02T13:00:00.66+00:00
CDev-8220 385 Reputation points
1 answer One of the answers was accepted by the question author.

Blocked from accessing native Azure Speech SDK (C++/x64) for Unreal Engine integration—installer reports success but does not install required binaries (no speechapi_cxx.h, .lib, or .dll). Project is C++ only; not using .NET or NuGet.

Hello Azure Support, I’m a developer working on a native C++ integration of Azure Speech Services within Unreal Engine, and I’m currently blocked from accessing the correct SDK. Despite multiple attempts, I have been unable to obtain the native C++…

Developer technologies | C++
asked 2025-06-30T02:13:45.2933333+00:00
Strickland, Jared 20 Reputation points
accepted 2025-07-01T00:52:40.73+00:00
Strickland, Jared 20 Reputation points
2 answers

Allocate / free memory with Visual Studio C++

I have a very simple program int main(void) { double* myVect = new double[10000000]; wait(2); // wait for 2 seconds delete[] myVect; wait(2); return 0; } I execute this program in Debug mode, put a breakpoint on "return 0" and look at the…

Developer technologies | C++
asked 2025-06-29T07:22:27.0766667+00:00
Ollivier TARAMASCO 0 Reputation points
answered 2025-06-30T16:19:29.9466667+00:00
Bruce (SqlWork.com) 78,236 Reputation points Volunteer Moderator
5 answers One of the answers was accepted by the question author.

Error trying to call a C# DLL from a C++ console app

I am on Windows 10 with VS 2022. I want to call a C# DLL from a C++ app. I am trying to register the C# DLL using regasm. I am getting the following error: C:\Users\dbaec\OneDrive\Forex\C++_App\C#_DLL\obj\x64\Debug\net6.0-windows7.0>regasm.exe…

Developer technologies | C++
asked 2025-06-16T17:00:35.6566667+00:00
DonBaechtel-7903 196 Reputation points
accepted 2025-06-26T10:58:23.48+00:00
DonBaechtel-7903 196 Reputation points
2 answers

Cannot Save File message keeps popping up in Visual Studio 2022

While making changes to an MFC dialog using the resource editor, and then not making changes for a short while, Visual Studio 2022 keeps popping up a 'Cannot save file' message... It's as though it is trying to write away a temporary file somewhere, but…

Developer technologies | C++
asked 2025-06-25T07:22:19.02+00:00
Trevor 0 Reputation points
answered 2025-06-25T10:18:16.66+00:00
David Lowndes 2,640 Reputation points MVP
3 answers

CMake build error at protobuf on C++ project with opencv

When building x86 of the project with opencv, I got an error as blew。 No problem buiding x64。 main] Configuring project: MyProject [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE"…

Developer technologies | C++
asked 2025-06-24T12:16:58.39+00:00
Woods Sea 10 Reputation points
answered 2025-06-25T08:38:50.1233333+00:00
Woods Sea 10 Reputation points
1 answer

Ask your question in the language of the Q&A site

To get the most out of Microsoft Q&A, please make sure to submit your questions in the language of the Q&A site you are on. This will ensure that our community of experts can provide accurate and helpful answers to your question.

Developer technologies | C++
asked 2025-06-23T12:43:22.0566667+00:00
tpetchel 0 Reputation points Microsoft Employee Admin
commented 2025-06-24T23:35:09.5366667+00:00
Sarah Fassett 0 Reputation points
2 answers

LNK2005 error on C++ app when implementing a replacement new and delete

In Visual Studio 2019 C++14 I can build a "hello world" program with a custom new and delete. I'm unable to link a larger program which implements a custom new and delete replacement. The error is LNK2005 "void * __cdecl operator…

Developer technologies | C++
asked 2025-05-30T15:51:20.56+00:00
Mike Nice 0 Reputation points
accepted 2025-06-24T23:12:30.2133333+00:00
Mike Nice 0 Reputation points
2 answers

Replacing Deprecated Extended Stored Procedures with CLR-Based C# Wrappers

Hi Team, Currently, we bind a C++ DLL to SQL Server using an extended stored procedure. Since extended stored procedures are deprecated, is it possible to create a C# wrapper for the C++ DLL and register this C# wrapper as a CLR stored procedure in SQL…

Developer technologies | C++
asked 2025-06-18T06:11:27.36+00:00
Abhishek Modi (amodi) 0 Reputation points
commented 2025-06-23T05:37:39.11+00:00
Abhishek Modi (amodi) 0 Reputation points
1 answer One of the answers was accepted by the question author.

CPU and disk usage values which we get from windows API (Using PDH) is not same as the value we see in task manager

I am currently using the PDH (Performance Data Helper) API to log CPU and Disk utilization data in a CSV file. Below is a snippet of the code I am using: #include <windows.h> #include <pdh.h> #include <stdio.h> #include…

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | Devices and deployment | Other
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
asked 2024-12-05T15:51:07.8166667+00:00
Chandan M S 20 Reputation points
accepted 2025-06-20T17:58:37.22+00:00
Chandan M S 20 Reputation points