3,683 questions with C++-related tags

Sort by: Updated
2 answers

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,683 questions
asked 2024-09-07T13:46:57.64+00:00
Forrest 0 Reputation points
answered 2024-09-07T15:57:29.2733333+00:00
Forrest 0 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,818 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,683 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,393 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,683 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
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,683 questions
asked 2024-09-06T04:51:21.3766667+00:00
东朴 虞 0 Reputation points
commented 2024-09-06T09:01:15.5033333+00:00
RLWA32 44,931 Reputation points
1 answer

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,575 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,683 questions
asked 2024-09-05T01:41:12.44+00:00
mc 4,376 Reputation points
commented 2024-09-06T08:57:39.41+00:00
RLWA32 44,931 Reputation points
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,683 questions
asked 2024-06-11T13:21:13.9233333+00:00
Flaviu_ 971 Reputation points
commented 2024-09-05T13:37:05.2733333+00:00
RLWA32 44,931 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,683 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 44,931 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,683 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
512 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 43,951 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,683 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
1 answer One of the answers was accepted by the question author.

BSCMAKE Warning BK4504

The warning BK4504 is for excessive symbol references in a file ( > 64000). I have 2 queries regarding that. What is meant by symbol reference? On what basis the limit is set to 64000? Kindly help me understand it.

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,683 questions
asked 2024-09-04T12:20:46.0833333+00:00
Lakshmanakumar Sankar 20 Reputation points
commented 2024-09-05T02:41:30.92+00:00
Lakshmanakumar Sankar 20 Reputation points
1 answer One of the answers was accepted by the question author.

how to get the (s,s1) in the arrow?using direct2d?

I draw a line and I know the two points one of them is (x,y) and then I want to draw arraw. and I can not get the axis of the (s,s1) because the arraw may have different directions.

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,575 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,683 questions
asked 2024-09-03T10:57:00.9+00:00
mc 4,376 Reputation points
commented 2024-09-04T15:02:14.86+00:00
mc 4,376 Reputation points
2 answers One of the answers was accepted by the question author.

[TSF-Application]How to obtain the localized name of the text service (TIP)

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,575 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,683 questions
asked 2021-08-12T09:17:33.197+00:00
Windmill_City 206 Reputation points
edited a comment 2024-09-04T11:56:05.6+00:00
Dmytro Riazantsev 5 Reputation points
1 answer One of the answers was accepted by the question author.

Win32Api Network Adapter set Power Managament

Hello! I want to change Network adapter's power managament settings. I want to check 3 checkboxes. I searched this on google but i couldn't successfull. I changed…

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,575 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,683 questions
asked 2020-10-31T13:30:49.527+00:00
Emre Demircan 21 Reputation points
commented 2024-09-04T08:02:29.9233333+00:00
Boris 1 Reputation point
1 answer One of the answers was accepted by the question author.

how to get the point in ellipse?

I have ellipse and one point. I know the cener (x,y) and the point (x1,y1) how to get the point of S?

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,683 questions
asked 2024-09-03T04:15:50.3566667+00:00
mc 4,376 Reputation points
accepted 2024-09-03T10:57:26.6566667+00:00
mc 4,376 Reputation points
1 answer

How to fix "Microsoft visual c++ 2015-2022 redistributable x64 - 14.40.33810 setup failed. 0x80070570 - The file or directory is corrupted or unreadable."

I am observing error "Microsoft visual c++ 2015-2022 redistributable x64 - 14.40.33810 setup failed. 0x80070570 - The file or directory is corrupted or unreadable." 1068:3390][2024-08-28T10:17:28]i371: Updating session, registration key:…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,031 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,683 questions
asked 2024-08-29T06:38:27.87+00:00
Rakesh 0 Reputation points
commented 2024-09-02T09:25:53.1033333+00:00
Anna Xiu-MSFT 28,576 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to Add Tooltips to Buttons and other UI Components (like - Checkbox, Radio button etc) in Win32 (C++) Desktop Application?

Hi there, I have a Win32 (C++) program on which I want to Add some Tooltips to some of it's UI components like - Button, Checkbox, Radio button. I tried a lot but nothing works. Here is my Demo program : #include <windows.h> struct { int…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
777 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,575 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,683 questions
asked 2024-08-27T14:38:58.41+00:00
MERUN KUMAR MAITY 576 Reputation points
accepted 2024-09-02T07:51:55.9766667+00:00
MERUN KUMAR MAITY 576 Reputation points
1 answer One of the answers was accepted by the question author.

access excption or stack broken when I show the IFileOpenDialog in second time?

I want to use IFileOpenDialog int DialogBox CoCreateInstance(CLSID_FileOpenDialog,NULL,CLSCTX_INPROC_SERVER,__uuidof(IFileOpenDialog),(void**)&file); DWORD dwFlags; file->GetOptions(&dwFlags); file->SetOptions(dwFlags|FOS_PICKFOLDERS); in…

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,575 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,683 questions
asked 2024-09-01T04:29:19.6866667+00:00
mc 4,376 Reputation points
accepted 2024-09-01T08:09:16.65+00:00
mc 4,376 Reputation points
2 answers One of the answers was accepted by the question author.

can not use wnd as parameter in class method?

class MyClassA{ void OpenMy(UINT id){ } void OpenMy1(){ DialogBoxW(hInstace,MAKEINTERESOURCE(IDD_ABOUTUS),hwnd,OpenMy);//here I can not set parameter of OpenMy } } C3867 not standard . please use & to create pointer to member.

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,683 questions
asked 2024-08-30T15:36:41.4666667+00:00
mc 4,376 Reputation points
edited a comment 2024-08-31T19:10:04.7133333+00:00
Darran Rowe 841 Reputation points
2 answers One of the answers was accepted by the question author.

How to implement the COM interface of C # in C++

I have a .NET Framework binary that implements two COM interface classes, where one serves as a callback function. Now, I want to use the implemented C# COM interface in a C++ project. I know how to create an object of type IMyDotNetInterface2, but I'm…

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,818 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,683 questions
asked 2024-01-11T00:13:06.88+00:00
Aspire 81 Reputation points
edited a comment 2024-08-30T12:41:52.8266667+00:00
华江 魏 0 Reputation points
1 answer

Modifying a C++ solution, by adding projects and assigning reference in command line

Hello, I am using VS2022 on Windows10. I have several C++ projects (libraries) that i am working on simultaneously. I want to Use my last downstream library/application as my main development solution Per command line add other C++ projects to the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,031 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,683 questions
asked 2024-08-21T08:59:50.2666667+00:00
Ibrahim Awada 0 Reputation points
commented 2024-08-30T08:05:00.66+00:00
Tianyu Sun-MSFT 30,326 Reputation points Microsoft Vendor