Porting SetTransform function in DirectX 9 to DirectX 11 or 12
Iam porting an existing project with DirectX 9 to DirectX 11 or 12, I am trying to port the function SetTransform from DirectX 9, there is no reference found in DirectX 11 or 12, please kindly suggest where to find the above function and how to define…
Get RecycleBin path
I am trying to get the RecycleBin path with the following code: std::wstring GetRecycleBinPath() { std::wstring path{}; SHGetSpecialFolderPathW(NULL, path.data(), CSIDL_BITBUCKET, FALSE); std::clog << ::GetLastError() << std::endl; return…
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 to Disable/Enable Audio Hardware Acceleration in Windows 11?
Hi there, I would like to Disable/Enable Audio Hardware Acceleration programmatically in Windows 11. Is there any way to implement it? Thanks. Best regards, Hank
Mixing net standard and visual c++
Hello Using VS 2017, can one have both net standard 2.0 and visual c++ projects in the same solution with the net standard project referencing the visual c++ project (.vsxproj)? If I create one solution containing two projects of this kind using VS 2017…
NVMe Sanitize call returns unexpected error 0x13D
Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…
.net8 windows form design view problem.
I am developing Revit addin in Vidual Studio in c++/cli as class library. Before moving to .net platform everyhing was working fine. But in .net Windows form design views doesnt work. Though when I add form element by code. It compiles and works. The…
Calling Windows WebAuthn API in Custom Credential Providers
I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key. I'm trying to integrate that application with my…
Got 'Insufficient system resources exist to complete the requested service' while building Store version of application
Hello folks, When I tried to build the Store (MSIX) version of my application via Windows application packaging project in VS 2022, I got the following errors: ...... 1>Generating code 1>Finished generating code 1>StartupTask.vcxproj ->…
WebauthN c++ Native Windows API in credential provider
Hi team, I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key and platform Windows authenticator…
C++ How to get layered window content image?
My goal is to get an HDC of an image or image of the contents of a layered window in Windows 7 and above. I tried PrintWindow(hwndMag, hdcDest, PW_RENDERFULLCONTENT), but this requires Windows 8.1. Note that layered windows may contain transparency, or…
Is it possible to implement deep linking in Windows app? I have created a Flutter app, and I want to do deep linking.
Could you please help, Is it possible to implement deep linking in a Flutter app on the Windows platform?
C++/CLI breakpoints not stopping
I try to debug an extension for Visual Studio (2019/2022) that I wrote in C++/CLI. Now... the extension itself works. The only problem is, that I cannot jump into the code while it is executing. The breakpoints never stop. But, when I create a C#…
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…
Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST
A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…
error: command 'D:\\......\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 1
when i use 'python setup.py build develop' to Compile the cuda dependencies,it gives me this error: ........lib\model\csrc\cpu\ROIAlign_cpu.cpp : fatal error C1083: 无法打开编译器生成的文件: “”: Invalid argument error: command…
The scrollbars are not always visible until I resize the CDialog
My dialog resource is set to display both the horizontal / vertical scrollbars. And you can resize the window. In OnInitDialog I call the following code: void CResizingDialog::InitScrollBars() { const SIZE sz = { m_rcInit.Width(), m_rcInit.Height()…
Як виправити помилку С2731: 'mian': function can be overloaded
int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); ```}
How to create a new dll file in vs2022
How to create a new dll file in vs2022, why after I created a new dll file, the compiler reported error C1854: The information formed during the precompilation header process of creating the object file "pch.obj" could not be overwritten.
Error squiggle not showing in visual studio code
Can't see error squiggles I have three files in my new C++ empty project, two of which are main.cpp and functions.cpp. I can see error squiggles in main.cpp but it is not in functions.cpp. The show squiggle option is on.