.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…
Same Header File Is Different
Hello Folks: Developing on Windows 10, up to date Visual Studio Community 2022, C++. When building my application I occasionally see this error: The two header files that Visual studio is complaining about are the same file. Here is the text of the…
Issues with afxres.rc
I have some MFC projects that have worked for many years, but suddenly I can no longer access resources from afxres.rc in any of them. For example, here's a simple test: CBitmap bitmap; BOOL success = bitmap.LoadBitmap(AFX_IDB_CHECKLISTBOX_95); assert(…
How to hook the ItaskbarList4 class?
I'm trying to customize the taskbar buttons, for this i'm hooking the ItaskbarList4 class using Detours, however, the functions on MyTaskbarList isn't getting called, trying to figure out what's wrong: inline HRESULT(WINAPI* CoCreateInstance_O)(REFCLSID…
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…
Can COM use Excel as an in-process DLL?
Hello, I would to ask about Excel COM operation. To connect to Excel from another C++ process is well established: #import "C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE11\\MSO.DLL" #import "C:\\Program Files…
Microsoft Visual Studio:the file cannot be found when running the program
After the compilation is successful, the file cannot be found when running the program. 在编译成功后,运行时找不到文件。 Display:(Chinese) Microsoft Visual Studio 无法启动程序“C:\Users\1vr_s\Desktop\passward\Project1\x64\Debug\Project1.exe”。 系统找不到指定的文件。 …
How to use C++/WinRt API like as part of DLL without user interface(UI)
Hi, I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a DLL. However due to the tight coupling of this sample with the UI, I am not able to use below API independently within my DLL code, without…
DCOM Interface Call fails with Kerberos
We try to move one of our current DCOM Applications that Impersonates a Client from NTLM over to Kerberos. So I tryed to get a minimal Example running. I Init the Server and Client as follows: CoInitializeSecurity(NULL, -1, NULL, NULL,…
Application built on Windows 11 does not start
When I built my Qt (6.8) application using MinGW 11.2 compiler toolchain, I get a pop up error message: The application was unable to start correctly (0xc00000ba). Click OK to close the application. Same issue occurs when built for Qt 6.7 and same…
Unkillable app in NtGdi DestroyAllocation2 after d3d11.dll Flush() when running for multiple days
Hello, we have an issue with a d3d11 software we develop in C++ for years. After running for multiple days, usually over 40 hours, we get a hang in win32u.dll!NtGdiDdDDIDestroyAllocation2() after we try to close the application. The process becomes stuck…
After update to VS 2022 17.8.5, from 17.0.6, I get Exception thrown at ntdll.dll immediately on debug
My project builds with normal warnings. I turned on Code Analysis on Build, but nothing improved the situation. After update to VS 2022 17.8.5, from 17.0.6, I get these errors when debugging or starting my project: Exception thrown at 0x00007FFE55B0E1E0…
Any sample code in C/C++ to Publish and Subscribe to Azure Web PubSub?
I am looking for sample C/C++ code to Publish and Subscribe to Azure Web PubSub. Specifically, I want to send data from a microcontroller programmed in C/C++ to a server with Azure Web PubSub. Are there any resources available that could help me achieve…
How do I stop Microsoft Defender Smartscreen blocking my app?
I am a software developer. I write and sell a (Visual C++) software product. I have just released a new version of my software. First in years. Customers buy a licence and download the software from the Internet. I've had my share of false positives…
How to Covert .stl file to .jpg file.
I want to convert a .stl file to a .jpg file, and the .stl file has a face with numbers and letters. I want to find the face through code and convert it to an image. It would be best to use C++ or C#.
How to change lockscreen wallpaper by using Windows SDK (C++) or modifying registry?
Hi all. My Windows version is Windows 10 22H2 19045.2846, and I'd like to change my lockscreen wallpaper by using Windows SDK (or dll function), but I can't find any function for it. I want to get a function, which is equal to…
Error C3640 in VS22 DLL project
No matter what I try I keep getting a C3640 Error: Error C3640 'DllMain::IslandPortal31::~IslandPortal31': a referenced or virtual member function of a local class must be defined Hopeing someone can help Header File #ifndef __ISLANDPORTAL31_H #define…
COM aggregation, "stabilization" AddRef/Release pair, necessary? (Don Box book)
To the excellent members of the COM team: I have one question with the “stabilization” technique introduced in Don Box’s book. In functions like FinalConstruct(), the outer object might create inner aggregation objects. These inner objects in turn…
How to fix app crash under Win11 in coremassaging.dll
Hello, I have created an application that displays 3D objects (step, iv, wrl, …). However the program crashes reproducibly, and the cause cannot be identified. Now it is unfortunately so that when debugging (Visual Studio debugger, Remote debugging,…
Visual Studio 2015 & 2017 doesn't recognize std
Hello, I've written simple piece of code which compiles and works perfectly on any other program which can compile and run C++, but when I try to run it from VS 2015 on my laptop or on VS 2017 from my other laptop, it won't build it - I get an error…