3,689 questions with C++-related tags

Sort by: Updated
4 answers One of the answers was accepted by the question author.

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-06-11T13:21:13.9233333+00:00
Flaviu_ 971 Reputation points
commented 2024-09-15T11:15:27.4866667+00:00
RLWA32 45,236 Reputation points
1 answer

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-13T01:18:36.8466667+00:00
mc 4,416 Reputation points
commented 2024-09-15T07:43:15.96+00:00
Castorix31 84,471 Reputation points
0 answers

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-13T07:03:29.52+00:00
Leo Purktz 0 Reputation points
commented 2024-09-13T16:09:55.8333333+00:00
Artem 0 Reputation points
1 answer One of the answers was accepted by the question author.

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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-13T09:04:54.2+00:00
mc 4,416 Reputation points
accepted 2024-09-13T15:23:50.95+00:00
mc 4,416 Reputation points
0 answers

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-06T04:51:21.3766667+00:00
东朴 虞 0 Reputation points
commented 2024-09-13T09:35:59.8866667+00:00
RLWA32 45,236 Reputation points
1 answer

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…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,310 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-11T01:28:04.4433333+00:00
Malcolm Davey 0 Reputation points
commented 2024-09-13T07:40:54.53+00:00
RLWA32 45,236 Reputation points
1 answer One of the answers was accepted by the question author.

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.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-05T01:41:12.44+00:00
mc 4,416 Reputation points
accepted 2024-09-13T02:56:32.86+00:00
mc 4,416 Reputation points
1 answer

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。

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,953 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
957 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
Microsoft Managed Desktop
Microsoft Managed Desktop
A cloud-based service that brings together Microsoft 365 Enterprise and adds these features: User device deployment; IT service management and operations; and Security monitoring and response.
54 questions
asked 2024-09-12T12:23:36.75+00:00
勇 项 0 Reputation points
commented 2024-09-13T02:31:07.91+00:00
勇 项 0 Reputation points
1 answer One of the answers was accepted by the question author.

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:…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2023-08-17T17:21:20.2533333+00:00
Mary-m 70 Reputation points
commented 2024-09-12T17:40:42.8133333+00:00
FischerPaul-6843 0 Reputation points
1 answer One of the answers was accepted by the question author.

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++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,714 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,706 questions
asked 2022-12-28T15:59:31.777+00:00
SouthBound 21 Reputation points
commented 2024-09-12T10:39:28.32+00:00
twinBASIC programming 0 Reputation points
1 answer

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-02-04T17:26:16.3133333+00:00
Wim Sturkenboom 0 Reputation points
answered 2024-09-11T12:13:24.6333333+00:00
k s 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-11T06:52:06.5833333+00:00
Tushar Aich 20 Reputation points
commented 2024-09-11T10:55:16.4033333+00:00
Tushar Aich 20 Reputation points
2 answers

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…

Universal Windows Platform (UWP)
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2022-03-14T16:19:52.773+00:00
David Hoffman 41 Reputation points
edited an answer 2024-09-10T06:07:46.63+00:00
BryceSor 240 Reputation points
3 answers One of the answers was accepted by the question author.

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-06-18T09:34:12.84+00:00
Coco_l_asticot 20 Reputation points
commented 2024-09-09T23:16:29.4433333+00:00
Axium 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-07T13:46:57.64+00:00
Forrest 25 Reputation points
accepted 2024-09-08T07:55:59.5733333+00:00
Forrest 25 Reputation points
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,843 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,442 questions
asked 2022-11-02T01:24:42.513+00:00
Julie Jiang 1 Reputation point
edited a comment 2024-09-07T14:23:06.36+00:00
Philippe Majerus 0 Reputation points
1 answer One of the answers was accepted by the question author.

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...

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-02T08:15:56.0866667+00:00
JW 81 Reputation points
edited a comment 2024-09-06T09:02:40.68+00:00
JW 81 Reputation points
1 answer

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…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-01T15:01:14.8966667+00:00
David Webber 136 Reputation points
commented 2024-09-05T11:15:16.8633333+00:00
RLWA32 45,236 Reputation points
4 answers One of the answers was accepted by the question author.

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"); …

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
517 questions
asked 2024-08-07T09:56:36.81+00:00
Armen SARIAN 20 Reputation points
edited the question 2024-09-05T06:02:13.23+00:00
AllenLiu-MSFT 44,111 Reputation points Microsoft Vendor
0 answers

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:…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
asked 2024-09-05T01:45:20.63+00:00
NhatHoang 0 Reputation points
commented 2024-09-05T02:47:18.4833333+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor