Content
MSVC compiler hangs on user defined operator overload
I have header which sets some identifier and also holds some sub class also and for interoperability we have defined operator overloads for main class and all its sub classes. And sample code like below, it takes lot of time to compile this. And some…


Windows Portable Devices can't re-create directory after deletion
Hi, I am using the documentation provided here: [https://learn.microsoft.com/en-us/windows/win32/wpd_sdk/wpd-application-programming-interface to create an interface to portable devices (Android device and memory sticks). I have implemented the provided…


Bug in WIN32 API ReadConsoleW for UTF-16 surrogate pairs for echoed output ?!
Hello, I am developing an command line application which shall be able to fully support Unicode. To be able to do this, the application a) runs in modern "Windows Terminal" b) uses ReadConsoleW / WriteConsoleW instead of the C and C++…


Error encrypting with CALG_AES_256
#include <wincrypt.h> #include <iostream> #include <system_error> #pragma comment(lib, "Crypt32.lib") unsigned char key[] = "123456789012"; int keylen=sizeof(key); int AES(const char * data, int data_len) { …


Class usage error- C++ Winforms
Hi friends I adapted a class that was in C# to C++ Winforms, but as I don't have much knowledge of classes, it's giving a problem using the class. Below is the class code. In the main program, I put this command line - ListViewColumnSorter…


How to solve IE11 browser no response when i use activex plugin to show a modal dialog
Hello,I develop a Activex plugin with MFC and duilib。The main window is a class named PlayerCtrl,Inherit from COleControl。When I show a Modal Dialog with UI_WNDSTYLE_DIALOG style(show the dialog success) call a method of PlayerCtrl,IE11 browser(inclue…


MFC Background color
hi, I have a question about the background color of MFC. My code is as follows Mainfrm.h class C_MainFrame : public CFrameWnd { public: C_MainFrame(); // Declear Constructor }; Mainfrm.cpp include "MFCAppRun.h" include…


Firefox cannot run in an AppContainer
I have written a program with AppContainer, but when I try to run browsers in it, it doesn't run despite the permissions I gave.
improper indention for c++ lambda in visual studio when auto formatting code
I have a function "func" which takes another function as its parameter. If I define a function with more than one line using lambda expression when calling "func", the auto formatting (ctrl+k,ctrl+d) seems to get confused. This is…


Standard serial over Bluetooth link - select COM port
Hello, As mentioned in https://blog.bachi.net/?p=9700, Bluetooth SPP opens two ports when pairing a device: An incoming port is used when a remote device established a connection to your device, and is exposed as the SerialPort service to the remote…


rcxdti.dll is required to compile DESIGNINFO resources
I've been using VS 2019 and 2017 with no issues until a few days ago, and there were no issues with dialog editing. But today suddenly to fix the dialog in VS 2019 and 2017 When I try to open a resource file, the following message appears. …


Reinicialização espontânea sem permissão do usuário após atualização do Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40664
Boa tarde! Na empresa em que trabalho, alguns computadores começaram a reinicializar sem a permissão do usuário e sem avisar antes. Investigando, em todos esses computador pudemos verificar a atualização do Microsoft Visual C++ 2013 x86 Minimum Runtime…


Why microsoft publishes such uncomplete code?
https://learn.microsoft.com/en-us/windows/win32/controls/create-a-simple-list-box People are wasting time by reading this. Plesa make it complete or remove. `` typedef struct { TCHAR achName[MAX_PATH]; TCHAR achPosition[12]; int…


MS Rich Edit Control ("RICHEDIT50W") bug? Control does unnecessary font substitutions.
I am using the MS Rich Edit Control in my MFC Visual C++ application. Users can select certain symbols to insert into the text. I have had complaints that when they try to insert certain characters into the text, it switches to a different font, which…
Windbg shows info dialog that it cannot open MFC code from devdiv.visualstudio.com
Windbg show this info dialog with below message when single stepping through MFC code: The file…


WinUI3 : How to detect when user toggles aeroplane mode
Hi, I'm working of WinUI3 desktop application. Is there any way where we can detect when user toggles aeroplane mode. Is there any event which gets triggered when aeroplane mode is toggled I tried searching online but was not able to find any…


Is there any way i can write a struct's default constructor in C++/CLI
// C3417.cpp // compile with: /clr /c value class VC { VC(){} // C3417 // OK static VC(){} VC(int i){} }; Here is the sample MS show us about error C3417.But in a spcial case, I have to write the struct's default constructor like…


C++ array Designator Initializer does not work with MSVC compiler
I have code like below which gets compiled successfully with LLVM clang-cl but fails with MSVC compiler. I believe MSVS supports designator initializers for array and struct initialization. Please let us know how we can use designator initialization for…


Bound ComboBox within a page and frame not working as expected - WinUI 3
Hi, i have a bound ComboBox which i've already posted here. I'm adding a separator by a TemplateSelector but to disable the separator, I have to iterate the ComboBoxItems in the Tapped event and set the IsEnabled property to false. This has to be…


How to see branch-misses and cache misses in Visual Studio 2022 C++?
In linux, we have "perf" command to see branch-misses. On windows, is there a corresponding tool to see branch-misses and cache misses of a C++ program?

