C++ RealTimeStylusAPI derives coordinates that are ten times larger than the actual coordinates.
In the following Packets in the RealTimeStylus API, I need to get the coordinates of the current input point on the screen. But strangely I found that this coordinate is normal for mouse input, while when it comes to finger and pen, the coordinate…
UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied
Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…
/MT and /MD question
I build on windows and use cmake vs2022 I try to build cef project and it always show 命令列 warning D9025: 覆寫 '/MD',以 '/MT' Is it possible for four case? /MT => generate static lib /MT => generate dynamic lib /MD => generate dynamic lib /MD…
How can I use the ID2D1DeviceContext interface in an MFC Direct2D application?
I am using Direct2D in a Visual C++ (Visual Studio 2022) MFC application that uses many of the Direct2D MFC classes. I need to use the ID2D1DeviceContext interface for various purposes. The MFC classes force you to use either ID2D1HwndRenderTarget or…
How to disable frame (and titlebar) but keep resizing and snap features when using SendMessage to drag the window?
I'm trying to disable the titlebar (and frame), but keep the ability to resize the window and have it so the snap layouts work when triggering SendMessage. I have the trigger work, but when I remove all the bit flags returned from GetWindowLong that gets…
How to customize title color for MFC ribbon bar
In an MFC MDI with ribbon bar project created with AppWizard, how to change background color of title area?
VC runtime redistributable
Hello, What type of license needs to be bought to commercially redistribute the VC runtime without any restrictions? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 Is it free if we own a Visual Studio 2022…
Can native Win32 exe show a WinUI3 Page?
I need to show a WinUI3 page from a native Win32 exe. I cannot make modifications to the Win32 exe. The architecture is like this: native Win32 .exe -> links to a C++/CLI dll with a known native C++ interface C++/CLI dll -> references and makes…
Is there a sample MAUI application to call c++ libarary
I have a cross-platform library written with C++, I use this library to create model and display it with OpenGL. Now I'd like to choose MAUI to create a desktop application and call above library to complete interactions. Now I need a sample for…
Heap Corruption after using CfUpdatePlaceholder
I can reliably crash .NET and C++ packaged applications (MSIX) on Windows 11 24H2 with Heap Corruptions, when updating Cloud Filter mini-driver placeholder files using CfUpdatePlaceholder. Repro: https://github.com/iterate-ch/CloudFiles-HeapCorrupt The…
Windows can't install Visual C++
Whenever I try to install Microsoft Visual C++ 2015-2022 Redistributable it tells me that "The feature you are trying to use is on a network resource that is unavailable. It then tells me it was unable to uninstall a previous version. I've tried…
Help Identifying the Visual C++ Redistributable Version for vcruntime140.dll (14.40.33810.0)
I need help identifying the specific Visual C++ Redistributable version and its associated Visual Studio version for the following file on my system: • File Name: vcruntime140.dll • File Version: 14.40.33810.0 Could you let me know: Which Visual Studio…
After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project
I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger: The procedure entry point __sanitizer_ignore_free_hook____dll…
cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...'
This problem popped up out of nowhere in the middle of October. " cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696) " I'm getting this error…
MediaFoundation: TimeStamp of first frame is not getting correctly set to 0. Instead, it is getting set as 0.0333 (frame duration)
I'm trying to read two frames, each individually stored in binary files named frame1.bin and frame2.bin, and create an MP4 video file called sample.mp4. Here's what I'm doing: I read a frame, associate it with its respective timestamp, and write it to…
OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2
We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…
How to pass an range directly to a C++ DLL/dylib on Excel for Mac?
Hi, I'm trying to extend Excel using C++ on a Mac. I basically want to pass a range directly to a function written in a C++ dylib. So far I have been able to pass arrays of basic types such as Doubles and Integers successfully. However, looping through a…
Visual c++ merge modules
From where can I get the v143 visual c++ merge modules for x64.I found it in Program Files\Microsoft Visual Studio\2022\Professional\VC\Redist\MSVC\v143\MergeModules. But the merge module in them contain dll for both amd64 and arm64, can i get merge…
why some language will change when remove some code?
in some contries language like Arab the text will change its shape when remove some of them. مرحبا I just remove last one مرحب the first will change too I remove again. مرح you can see it totally changed. حبا to ح what I want to do is to create each…
Issues with GetAppLicenseAsync in MFC C++ Application.
In the application, there is an MFC project and a Windows Runtime Component (Universal Windows) project, see my previous question…