Help fixing template logging code
In the line return $log, "testVoid4"; I'm getting this compile error: 'void' function returning a value I don't understand why when $log, is called with just a single argument void_wrapper is returning anything else than void. How I could make…
Developer technologies | C++
Why does CMainFrame::OnMdiNext is not called?
I have a MFC MDI app. I want to override WM_MDINEXT message. And I did: header: protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg LRESULT OnMdiNext(WPARAM wParam, LPARAM…
Developer technologies | C++
Why does CMainFrame::OnMdiNext is not called?
I have a MFC MDI app. I want to override WM_MDINEXT message. And I did: header: protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg LRESULT OnMdiNext(WPARAM wParam, LPARAM…
Developer technologies | C++
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++


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++
Does Windows Server 2022 support COM+?
I have an application that uses a COM DLL (written in Visual C++ 6.0) and an EXE application built using VB6. Both are currently deployed on Windows Server 2016. We are now planning to migrate to Windows Server 2022. Does Windows Server 2022 support…
Developer technologies | C++
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++
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++
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++
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++
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++
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#
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++
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++
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++
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++
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++
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++
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++
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…