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.…
What is MSVC’s default execution character set?
According to MSVC’s documentation, I can use the /execution-charset option to change which execution character set a program uses. Let’s say that I don’t use the /execution-charset option. What execution character set will MSVC use by default? The…
GameInput issues with detecting input when Xbox controller is connected via bluetooth
Hi, I was following the tutorials on utilising GameInput, a component of GDK (from here https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/input/overviews/input-fundamentals) and noticed that if I have a controller connected via bluetooth the…
Does URLDownloadToFile still work on a Windows 11 computer without Internet Explorer on it?
I have written a windows console program that uses the win32 URLDownloadToFile function. This then ran for a long time without any problems on a windows 11 machine. However, 2 months ago this PC was reinstalled and since then the program no longer works…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
How to fix Expression: m_pAccessor != 0 Debug Assertion Failed!
Debug Assertion Failed! Program: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll File: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\atlmfc\include\atldbcli.h Line: 5198 Expression: m_pAccessor != 0 For…
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?
Which project template
Windows 11, Visual Studio 2022 I am having trouble finding a web page that provides some basic comparisons of the different template types. The current need is a simple GUI for some number crunching. There will be no graphics or pictures. There will…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
C++WinRT does not correctly handles Chinese characters using Windows.Foundation.Uri
I have a uri with Chinese character and query string that needs to be parsed with Windows.Foundation.Uri. Using C++WinRT, it always returns me an empty result. But equivalent C# code does returns me expected result. I have tried changing the file…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
how to resize swapchain?
I am using Direct2D D3D11CreateDevice ` hr = d2dFactory->CreateDevice(dxgiDevice, &device); hr = device->CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &ctx);` DXGI_SWAP_CHAIN_DESC1 swapChainDesc = { 0 }; swapChainDesc.Width =…
how to perform tomographic wifi sensing using wifi adapters in c++ and python
hello i would like to ask how to modify the following programs to use wifi adapters rather than sdr to perform tomographic wifi sensing in c++ or python. thanks very…
How do I save ID2D1Bitmap as a file?
Bitmap and text were output to DIALOG using Direct2D. I tried to make this rendered screen into a bitmap and save it as a file. But, I get D2DERR_WRONG_RESOURCE_DOMAIN. Is there a way to transform ID2D1Bitmap to IWICBitmap? My goal is to use GDI+…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Program crash when creating MagnificationAPI window in Windows 11
While executing the following statement, programs on the target computer crash without warning and without a runtime error pop-up box. hwndMag = CreateWindow(WC_MAGNIFIER, TEXT("IdtScreenMagnifierMag"), WS_CHILD | MS_CLIPAROUNDCURSOR |…
CRichEdit control Hyperlink color change not working
I have derived a class from CRichEdit and the control contains multiple hyperlinks. While every thing works as expected, customer wants to change the color of the hyperlinks to red. I tried many things, yet the hyperlink still shows in blue color. Here…
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…
Where is OpenGLES example for mobile?
https://learn.microsoft.com/fr-fr/cpp/cross-platform/build-an-opengl-es-application-on-android-and-ios?view=msvc-170 Where is this template? I have updated the VS and installed all needed content? Where is the template project promised in this…
one or more re definition in c++?
struct IDXGIDevice1 *dxgiDevice (?dxgiDevice@@3PEAUIDXGIDevice1@@EA) already define in game.obj. this is my code: IDXGIDevice1* dxgiDevice = NULL; why?
Launching Windows Applications using Voice Assistants
Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…
![](https://techprofile.blob.core.windows.net/images/oNA6lJ-DUECh-Nqjpun7lg.png?8DC682)
how to fix build\debug\outdebug does not exist
whenever I try to debug and run my code I keep getting a build\Debug\outdebug does not exist error for c++.
How to access registry items under driver service registry key path of Win11 24H2 in a WDF driver?
I am currently utilizing a Kernel Mode Driver Framework (KMDF) driver, employing the RtlQueryRegistryValues function with parameters (RTL_REGISTRY_ABSOLUTE, L"\Registry\Machine\System\CurrentControlSet\Services...") to access specific registry…
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…