Content
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…


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. …


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) { …


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…


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…


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?


how to change font of dialog title in mfc application
I want to change font of all the dialog elements of a MFC application including menu and title bar, without effecting icons and close button on the title bar. overriding WM_NCPAINT requires title bar to be repainted. is it posible to change only font of…


visual studio 2013 not installed environment error
Error 0xc000007b when running the application. It is an application made with c++ MFC, and the error occurred when only visual studio 2019 was installed and used after being built and used in the visual studio 2013 environment. Even after installing…


Netusergetinfo API works only if the user has Admin or group access. Is there any other Microsoft API which works without this privileges?
In general, the user must have admin access or group access for using Windows Active Directory. From customer log, we confirmed that they do not have such access. Since the user do not have the privileges, it fails in the NetUSerGetInfo API call and…


VS C++ converting int to char (string)
Hello. I have a problem with such thing. Output is as show at the bottom of page. Can anyone know how to show text inside the edit window as number? (and how to get a number from window as text) Help pages on the internet are not readable. The output is…


Error loading design. C++ Winform
Hi, I am not able to load the design of a form, but the program works perfectly. It gives error object reference not set to instance of an object. But it doesn't show what error, line, etc. How to see the design again? Tkd


Visibility of class in the function argument
Hello This code below does not compile with VC++, although it compiles fine with gcc foo.h template<int TDegree> class Base { public: static const int dim = 3; }; template<int TDim> class Vector {}; template<int TDegree> class Foo…


System.exception when I create a CUDA Runtime project in VS 2022
When i try to create a CUDA 12.0 Runtime project i get System.exception. If I look in the directory there are only the .sln and the .vcxprj files. Cuda seems to work fine. cuda version: 12.0 windows 10