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…
EDIT control will disappear when I clear the window using direct3d?
first I created EDIT. I use direct3d to BeginDraw and EndDraw then present the EDIT will disappear. and If I use direct2d to do it .it will be ok. why I can not use direct3d? here is the project I create:https://github.com/ljzj2/testedit
Memory leak when using IShellItem plus BindToHandler
I write this code that iterates over all files on the desktop, its working correctly, however, the memory keeps increasing constantly. I'm already using CComPtr to automatic manage the memory of these pointers, i'm trying to figure out whats leaking. The…
how to get IStream from char * or std::string?
now I want to use ID2D1DeviceContext5::CreateSvgDocument to create svg document. and how to get IStream from char *? I have svg and I do not want to write it to file.
Windows Service Create a privilege Process in spicefied session
I create a process in current session in Windows service but it has only current user privileges. But now I want to create a privilege process in specified session from code in Windows service, What shall I do? Here is my code below BOOL RunInSession(int…
Filter from SetUnhandledExceptionFilter not capturing C++ exceptions from threads started with _beginthread on windows server 2022
We have found a the change in behaviour of the SetUnhandledExceptionFilter API call. On windows server 2016, this enables any uncaught C++ exceptions to be handled by a registered filter, including on our worker threads. In our filter callback we have…
how to remove border of picture ?
I create dialog using DialogBoxW(hInstance,MAKEINTERESOURCE(IDD_PICTURE1),O_WND); and there is picture on it how to remove its border.
The PdhAddCounter function obtains the computer CPU information, which takes nearly 2 minutes
The PdhAddCounter function obtains the computer CPU information, which takes nearly 2 minutes。
Cannot start visual studio due to an error. Microsoft.ServiceHub.Client.ControllerConnectionException: Controller terminated before accepting condition. Exit code: -532462766
Upon opening Visual Studio Professional 2022, the following error appears: Cannot start visual studio due to an error. Microsoft.ServiceHub.Client.ControllerConnectionException: Controller terminated before accepting condition. Exit code:…
Migrate VBA to vb6, vb.net, or c++
I have VBA code heavily integrated with Excel and it also creates shapes that will be put into a Powerpoint slide. I want to be able to create an exe file for distribution. What language is best to convert to VB.Net, VB6, C++ ?
C++ Configure DCB before opening serial port
In C# it's reasonably easy to create a serial port object, configure it and open the serial port. I'm looking for a way to do the same in C++. Opening the serial port with CreateFile asserts DTR and RTS which I would like to prevent. For this, I have the…
Error on opening .exe file
I was building a Backend server in microsoft visual studio using crow c++ library. Everything was working fine but suddenly on trying to build project after sometime it showed error which said " cannot open .exe file " out of nowhere Please…
What are the steps to create an exe from UWP WinRT code that will not be added to the Windows Store
I did this once, but I having difficulty remembering or finding the web page that gives the steps on how to perform this. Could someone help me. I remember that I had to create a certificate to do this, but beyond that, I don't remember much. Thanks for…
Disabling autocompletion from anything else than Tab in VS 2022
Although I set "Default IntelliSense completion mode" to Tab-only in Text Editor/Advanced, Visual Studio keeps replacing text as I type with its first suggestion when I press e.g. space or dot. I do not want the editor to ever autocomplete…
DLL function is exported uisng #pragma comment(linker, "/export:Func4\")
In DLL, I use this method to export the function. #pragma comment(linker, "/export:Func4=?Func4@@YAXXZ") void Func4(); Then, I got example.dll, example.lib file. In DLL file, the function name is Func4. When I use this DLL via implicit…
Windows 11 22H2 has a different way of using the JS engine?
Dear support, Our company has a solution built on a WebBrowser that will use the JS engine. After upgrading to Windows 11 22H2, we found that the solution behaves differently from before. We did some research, and then found that Windows 11 22H2 has…
What does it mean for a range to overlap with a container?
From cppreference: I don't get it. Is this referring to memory overlap? Like a base class subobject? What would be an example of undefined behavior using std::set insert_range? A simple code example would help to understand. Thanks...
How to get an HTML help window to launch on top, without forcing it always to be on top.
I have a problem with an HTML Help window in my MFC application. I have arranged the the help window is NOT a child of the application's main window so that it doesn't always have to be on top. To do this, I have created virtual method: void…
Incorrect file creation date
Hello I'm trying to create files with C++ but the creation time displayed is incorrect. Here's the code: [CODE] do { ++item; sprintf(pathDirFile,"%s/%s%03d.bmp",pathDir,file1,item); f1 = fopen(pathDirFile,"r"); …
Microsoft C++ Runtime Library
This popup comes up every time I start my computer. How do I fix it? thanks "Microsoft Visual C++ Runtime Library Assertion failed! Program: ...\node-vulcanjs\build\Release\VulcanMessageLib.node File:…