DwmExtendFrameIntoClientArea doesn't paint border in Win10
I tested the source example found in https://learn.microsoft.com/en-us/windows/win32/dwm/customframe and it works in Windows 11. However, when testing it in Windows 10, the border disappears when the window is active. On the other hand, when the window…
CPP -- error CS5001: Program does not contain a static 'Main' method suitable for an entry point
Hi, Getting this error on a C++ application: error CS5001: Program does not contain a static 'Main' method suitable for an entry point: Tried adding this: (no luck...) public static void Main() { }
![](https://techprofile.blob.core.windows.net/images/skrOTC4ziUSZ-rTzUeIlGQ.png?8DCAC8)
![](https://techprofile.blob.core.windows.net/images/skrOTC4ziUSZ-rTzUeIlGQ.png?8DCAC8)
How to use DeviceIOCommand (IOCTL_STORAGE_PROTOCOL_COMMAND) integrate with ufs device
Hi, Currently i'm working on sending query request upiu to ufs device by using DeviceIOControl(IOCTL_STORAGE_PROTOCOL_COMMAND) but i'm getting ERROR_INVALID_FUNCTION on getLastError(). Can you please provide sample code or documentation on…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
Can't reverse back to shortpath?
Hi, I have this folder path in short-form like this C:\Users\admin\Downloads\NEWFOL~2\NEWFOL~1\...\NEWFOL~1 using GetLongPathName, then I have C:\Users\admin\Downloads\New folder (2) - Copy - Copy test\New folder\...\New folder but now using…
![](https://techprofile.blob.core.windows.net/images/mTRjBkXqiU2SgoIJJ1L84Q.png?8D8BC5)
When using the Win32 GetAppliedGPOList in C, the GPO list pointer is always NULL even when trying multiple GUIDs and even when the API returns success.
In the code below, pGPOList (the GPO list) is always NULL even when the GetAppliedGPOList returns success. I have tried multiple group policy extension GUIDs, but no luck. What am I doing wrong? This also happens when I try GetAppliedGPOList with user…
Visual C++ (VS 17.10.4) don't show template errors
After updating to the latest version of the studio, error output stopped appearing when compiling templates. That in a project with several thousand files makes work almost impossible. What do I see…
Visual Studio 2022 not saving changes.
I have been trying to build a simple reverse string function in C++ but visual studio is not letting me save my work. It notifys me of build errors but I know there are none. Im testing with simple print statements. Every time my actions go like this. I…
win32 When trying to convert string to LPCWSTR, the result is Japanese characters
I want to make what key the user presses added to a string and then displayed in SetWindowText, but the output is Chinese characters case WM_CHAR: { ifpressed; static std::string getwparam; getwparam.push_back( wParam ); SetWindowText(hwnd,…
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…
Thumbnail Preview Title Icon
Is it possible to customize/modify the icon showed in the title bar of a thumbnail? For example, if a window doesn't have an icon in the title bar, its thumbnail does display an icon... the standard application icon (please see attachments). Is there any…
Can't read input from keyboard/mouse using Nuget GameInput lib on PC
Currently working with the latest version of Microsoft.GameInput version 0.2303.22621.3038. Using the follwing code, I'm able to read the axis values of a Logitech joystick IGameInputReading* reading; if…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
How to get the geolocation position based on the WiFi source always instead of the IPAddress
Hi, I would like to know how can I get the geolocation based on the WiFi source instead of the IP address. I was getting the geolocation based on the WiFi in last month in my Windows 11 system, but it started giving the geo location based on the IP…
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+…
Getting wrong CPU Processor ID with __cpuid() in Win 11 systems
Hello Friends, I am facing an issue in getting CPU Processor ID with C++ code. I used __cpuid() function as below: #include <iostream> #include <intrin.h> int main() { unsigned __int32 regs[4]; …
![](https://techprofile.blob.core.windows.net/images/K747RUFoqkahjX7_nKUlcw.png?8D8E9F)
how to fix error C++ command-line error: cannot open metadata file
I'm trying to make a windows form but in the premade C++ file it gives this error "C++ command-line error: cannot open metadata file." I did add a form and it worked perfectly but there was a bug that fixes when you delete it and make a new…
DLLs that are only in older versions of Microsoft Visual C++
I got a program that apparently works with Microsoft Visual C++ 2013 installed. I came to this conclusion after installing all the versions I found here…
![](https://techprofile.blob.core.windows.net/images/vJlj8h4ANEaP1_xucHl-WA.png?8DCA39)
Windows 11, PerMonitorV2 is NOT automatically scaling non-client areas of my window.
I have a manifest containing: <asmv3:windowsSettings xmlns='http://schemas.microsoft.com/SMI/2005/WindowsSettings'> <dpiAware>True/PM</dpiAware> </asmv3:windowsSettings> <asmv3:windowsSettings…
C++/WinRT background task (non UWP)
Hi, I'm looking to create a win32 app utilizing WinRT to use UWP Background Task I tried to find some samples on the internet and I found two main "official" repos here …
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…
Can't Modify or Uninstall Visual C++ 2015-2019 (Causing Errors for Ableton Live Install)
Hello, My ultimate goal is to install the Ableton Live 11 trial. When I try to do that, I receive an error about it "already being installed" which the Ableton forums say may be an issue with Visual C++. I tried repairing all my versions of…