[[likely]] attribute not working with MSVC
C++20 has introduced the [[likely]] attribute, I wanted to see the difference is the assembly and wrote a simple code: int If (bool pFlag) { if (pFlag) return 3214; else return 19862; } int IfLikely (bool pFlag) { if (pFlag)…
Developer technologies | C++
debug C++ project with cuda kernel using Nsight
Trying to configure VS 2022 community to integrate with Nvidia tools including NSight debug and compiling .cu source files. This is new install of VS 2022C and then new install of Nvidia GPU tools version v12.6. when i enter VS 2022 no signs of GPU…
Developer technologies | C++
MSVCRT40.DLL missing when installing software
Hello all, I'm trying to install a software that keeps giving me the message that "The file C:\Windows\System32\MSVCRT40.DLL could not be opened." Searching the web I got the information that this DLL is part of the Visual C++ packages. Which…
Developer technologies | C++
Crashed in IConnectionPoint::Advise
When i use this api named IConnectionPoint::Advise in my app main thread, the app crashed, only once, can not reproduced, why and how to fix it? here is the stack: # Child-SP RetAddr : Args to Child …
Developer technologies | C++
Arduino Joy Stick program that is supposed to draw lines on a Windows GUI app screen is not working
Hi Microsoft team I have a Arduino connected Joy Stick that Writes X and Y cordinate data to the Serial Monitor on Joy Stick Move , but when I read that data from a Windows GUI app in order to get it to draw on the windows GUI APP nothing happens …
Developer technologies | C++
blocked in IConnectionPoint::Advise
When I use this api named IConnectionPoint::Advise in my app main thread, the whole app frozen, only happened once. Why and how to fix it? here is the stack: 00 00000082`9673a5f8 00007ffd`a32b61c4 : 00000456`975ae87d 00000082`9673ab60…
Developer technologies | C++
Stable IFC generation
Currently MSVC generates different IFC file whenever I change *.ixx. It doesn't matter, do I touch the interface or implementation. Even if I add a whitespace in private fragment of the module, MSVC will generate different IFC file which trigger…
Developer technologies | C++
Hello dear Microsoft advisors
Hello dear professional IT advisor of Microsoft. I am Happy for my chance to contact with you. actually I am living in my home in Iran right now and I am getting disappointed by my country sanctions and limitations. The limitations that doesn't harm…
Developer technologies | C++
How much memory allocate when reading save blob with XGameSaveReadBlobData
I'm implementing game save logic and need to write a function that reads data from a single XGameSaveBlob. The documentation for XGameSaveReadBlobData explains how to use it, but it feels incomplete and even partially incorrect. For example, there’s no…
Developer technologies | C++
使用clion编写.c程序时,若.c文件使用utf-8保存,用printf打印中文会出现乱码
在我使用clion编写.c程序时,若.c文件使用utf-8保存,用printf打印中文会出现乱码(无论是在clion的控制台中还是在windows命令行中都是这样),对输出的乱码进行分析得知这是由于程序输出的utf-8编码的信息被控制台用gbk编码解码导致的。 是否是因为windows控制台默认使用gbk编码格式解码导致的? 我尝试过把.c文件改为用gbk格式编码,确实在我的电脑上不出现乱码了,但是可以预见这样生成的程序在其他国家和地区的电脑上会因为他们的windows系统没有使用gbk编码导致在他们…
Developer technologies | C++
DevicePicker fails to display at the correct coordinates when DPI != 96
I've been struggling with this issue for several days and haven't found a solution despite consulting numerous documentation sources. I'm attempting to invoke DevicePicker.show() to display the DevicePicker at my mouse cursor position. When Windows…
Developer technologies | C++
Getting error on this
#include <windows.h> #include <combaseapi.h> // For COM functions #include <string> // Forward declaration LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance,…
Developer technologies | C++
Windows Desktop screen capture and transmission over UDP is failing
Hi Microsoft team I am trying to capture my desktop screen and transmit it over UDP to VLC media player running on a Raspberry PI, on the network but the UDP stream is not displaying anything // Source - https://stackoverflow.com/a // Posted by Chuque,…
Developer technologies | C++
How to use a .exe in kiosk mode (only for that user) with Windows Configuration Designer (WCD)
I am using windows11 enterprise. I am using windows configuration designer and I create my .ppkg. when I log into kiosk I have black display(my app is not visible and since I changed the shell it won't show anything. If I log into my normal account I…
Developer technologies | C++
How to troubleshoot and resolve the "win32kfull.sys" error:
The text on the screen is a prompt for users to provide detailed information about a problem they are experiencing, likely within a community forum or support platform. This question is related to the following Learning Module
Developer technologies | C++
The file or directory is corrupted and unreadable.
Failed to execute command: ""C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\CL.exe" @C:\Users\Rohi\AppData\Local\Temp\MSBuildTemp\tmpf0e7a1f542fd49198d5f713dc7888c8c.rsp". The file…
Developer technologies | C++
Como solucionar problemas en ventana GDI en c++
Porque despues de esconder y mostrar varias veces una ventana GDI en c++ empieza a dibujar cualquier cosa o se pone gris la zona que estaba oculta, a pesar de cumplir con todas las condiciones de eliminar y borrar objetos (DeleteObjet, Delete DC y…
Developer technologies | C++
How do I get more information about this linker error?
Recently I have been doing a lot of template related programming and every once in a while I get this linker error, but it doesn't really tell me much about what's wrong. 1>CollisionSystem.obj : error LNK2019: unresolved external symbol…
Developer technologies | C++
Confirm For ECCN For Visual C++ Redistributable / Microsoft Visual Studio Redistributables / VC++ Runtime Dlls
Hello, here I want to confirm the accurate ECCN info of below Microsoft Software Products: Visual C++ Redistributable for Visual Studio 2010 SP1 Visual C++ Redistributable for Visual Studio 2012 Update 4 Visual C++ Redistributable for Visual…
Developer technologies | C++
Not getting purchase information of subscription
I'm using the windows_iap package for implementing in-app purchases in my Windows Flutter app. However, whenever I run the app or create an MSIX package and check for purchases, I consistently receive empty results or messages indicating that no purchase…