How to use a static library that defines C++ modules from another project in another solution?
I have a collection of C++ 20 modules in a static library and I need to use them in another project in another solution. I have linked my client project with the static library but it does not recognize the modules in the library so cannot use the…
How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?
I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…
CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed under CERT_SYSTEM_STORE_LOCAL_MACHINE
I used Below program to retrieve the private key of "1-ksp-digitalid-MSKSP 27th June" certificate stored under LOCAL_MACHINE. It gives me error 0x80090016 i.e. Keyset does not exist error. On Properties you can see dialog saying that…
How can I resolve the error "Microsoft Visual C++ 14.0 or greater is required" when installing p5 with pip?
I encountered the following error when attempting to install p5 with pip: "Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/". I have…
Why does my transparent-background window turn into black screen after window ghosting?
I have a pop-up window that acts as a watermark on my application over a parent window. It has a transparent background (WS_EX_TRANSPARENT), but when the application becomes non-responsive, Windows adds a ghost window with a black background. I tried…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
Get deleted item from recyclebin
Task: I need to get deleted item having SHITEMID data. SHITEMID is defined as: typedef struct _ITEMIDLIST { SHITEMID mkid; }ITEMIDLIST; defined in C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\shtypes.h I have the following code to get…
C++ Win32 fullscreen windows cause the taskbar, which is set to auto-hide, to not rise properly.
When a window is displayed full screen (or takes up the whole screen), the taskbar can't be raised (the user has set the auto-hide taskbar option), I don't want this window to cause this problem, is it possible to set up this window in C++ so that the…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
COM Interop of WPF Custom Control - Access denied about the registry key HKEY_CLASSES_ROOT\...
Hi, I have a problem building a project. My purpose is to build a WPF Custom Control in order to use it in MFC. But the build cannot be done. The following informations are what I am through right now: Project Type: WPF Custom Control…
How can I get apps on different platforms to communicate?
I wonder if there is anyone out there who can help me with a solution to an application I want to create. This solution will contain two separate platforms, communicating with each other via network, serial ports, or something else. The first platform…
VS can't find the header file located at obvious position
As you can see, I placed game.h in the header file filter and hecate.cpp in the source file filter. The hecate.cpp file includes game.h, but it shows an error indicating that the game.h file is not found. How can Visual Studio make such an obvious…
Need to get real OS Version
Hi need to get the real OS Version of the current machine in C++. Essentially I need something similar to "GetVersionExW", but a version of it that: Is not deprecated Does not require the application to be explicitly manifested…
How to fix "module was not instrumented." Reason:"path_is_excluded" error in Microsoft.CodeCoverage.Console tool?
I'm receiving the following problem while trying to instrument my dll with Microsoft.CodeCoverage.Console tool. module was not instrumented. Reason: path_is_excluded." I'm using Microsoft.CodeCoverage.A console tool for calculating code coverage.…
Where to find correct version information using in C on Windows
I'm looking to programmatically find the correct version information for Windows using the "C" programming language. I've searched online with no luck. Does anyone know where I can find resources to help me achieve this goal?
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
Disabling autocompletion from anything else than Tab in VS 2022
Although I set "Default IntelliSense completion mode" to Tab-only in Text Editor/Advanced, Visual Studio keeps replacing text as I type with its first suggestion when I press e.g. space or dot. I do not want the editor to ever autocomplete…
How does Windows' 'Game Controllers' properties connect to a joystick?
The situation: We need to use a new game controller (with a joystick only) hardware on Windows 10 IoT. In the properties of "Game Controllers", moving the joystick is visible in the displayed rectangle with the '+'. Our software using DirectX8…
error C2039: 'string_view': is not a member of 'std'
I have installed a fresh VS2022 (community). I created a MFC app, and I compiled and worked fine. I put the following line of code, in a header, lets say class CMFCApplication1Doc : public CDocument: // MFCApplication1Doc.h : interface of the…
System.IO.SerialPort throws System.PlatformNotSupportedException when calling from c++, but not from c#.
I have a perplexing issue with the System.io.Ports package in a Class Library I built using c#/.NET6. I suspect it is a misconfiguration, but I'm not seeing much helpful documentation thus far on StackOverflow. As some background, I must support an old…
![](https://techprofile.blob.core.windows.net/images/K4Tvf0kX70SlstOdaVY81Q.png?8D9D5B)
how to reduce size in c++?
I used just one func in lib. but if I do not use this func the size may be 30kb if I use it is 150kb but I just use one not all. the .h file is very big. 331kb how to reduce unused codes? I am creating dll
C++20 Modules in Shared Libraries
Hello, Follow-up question to https://learn.microsoft.com/en-us/answers/questions/1665106/how-to-use-c-20-modules-in-shared-libraries I’ve been exploring the use of C++20 modules in shared libraries and I understand the typical approach involves providing…