3,530 questions with C++-related tags

Sort by: Updated
4 answers

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,609 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,530 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,033 questions
asked 2020-08-25T04:58:53.277+00:00
Elinor Ginzburg 106 Reputation points
answered 2024-04-29T08:35:34.7833333+00:00
dewasakti777 0 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 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,530 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,494 questions
asked 2024-04-29T07:02:22.5866667+00:00
masterjodi 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to remove the context help icon from CFindReplaceDialog?

I am using a CFindReplaceDialog in my application. But, it displays the Context Help icon in the top right. How can I stop displaying this icon?

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,530 questions
asked 2024-04-28T21:48:26.19+00:00
ChuckieAJ 66 Reputation points
accepted 2024-04-29T06:56:00.4666667+00:00
ChuckieAJ 66 Reputation points
0 answers

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…

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,530 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
941 questions
asked 2024-04-28T07:39:03.8933333+00:00
Copycat 0 Reputation points
commented 2024-04-29T05:53:07.5133333+00:00
Viorel 112.1K Reputation points
1 answer

Is the Visual C++6 free to use in enterprises ?

Hello Team, Do I understand correctly that Visual C++ 6 is free to use in enterprises? (I saw redistributable version is okay to use in enterprises. But I can't see the redistributable version of Visual C++ 6.0 in the MS website.) Thank you.

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,530 questions
asked 2024-04-01T19:41:26.7766667+00:00
UnsangLee 0 Reputation points
edited a comment 2024-04-27T15:30:55.53+00:00
kwikc 131 Reputation points
1 answer One of the answers was accepted by the question author.

Alternatives for the application to make it as a packaged application?

Hi, I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode. I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample…

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.
726 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,530 questions
asked 2024-03-13T04:17:56.3366667+00:00
Rohan Pande 265 Reputation points
commented 2024-04-26T00:06:10.75+00:00
Matthew Bonanno 1 Reputation point
1 answer

Is there any way to disable loading of satellite DLLs for MFC programs?

According to this help page, any application or DLL created with MFC will attempt to load localized resources from satellite DLLs such as exampleENU.dll or exampleLOC.dll. We have built a legacy application using MFC, but we do not use this particular…

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,530 questions
asked 2024-04-25T11:02:07.57+00:00
Hermann Walth 0 Reputation points
answered 2024-04-25T14:59:15.2633333+00:00
Michael Taylor 48,306 Reputation points
0 answers

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
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,609 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,530 questions
asked 2023-08-24T10:57:26.8766667+00:00
Torsten Oestreich 0 Reputation points
edited a comment 2024-04-25T14:20:29.9266667+00:00
Torsten Oestreich 0 Reputation points
0 answers

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…

Universal Windows Platform (UWP)
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.
726 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,422 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,530 questions
asked 2024-04-23T06:41:57.05+00:00
sunil maurya 21 Reputation points
commented 2024-04-25T09:42:43.74+00:00
Junjie Zhu - MSFT 14,826 Reputation points Microsoft Vendor
1 answer

Windbg shows info dialog that it cannot open MFC code from devdiv.visualstudio.com

Windbg show this info dialog with below message when single stepping through MFC code: The 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,530 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
941 questions
asked 2023-01-31T07:31:16.9433333+00:00
Dev Stability 7 Reputation points
edited the question 2024-04-25T06:24:00.65+00:00
Dev Stability 7 Reputation points
2 answers

How to fix error MSB4057 The target "ComputeLinkImportLibraryOutputsForClean" does not exist in the project

I am trying to make a game and everytime I build my solution this error pops up I am using the following NuGet Packages SDL SDL_image.h SOIL Box2D OpenAL.Soft GLM Boost I am also using the following libraries cpptoml FastNoiseLite ImGUI

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,609 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,530 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
941 questions
asked 2024-04-12T08:55:52.2633333+00:00
Veritum 5 Reputation points
edited an answer 2024-04-24T13:55:45.03+00:00
Gordon Elliott 5 Reputation points
1 answer One of the answers was accepted by the question author.

Launching Windows Applications using Voice Assistants

Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…

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.
726 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,422 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,530 questions
asked 2024-04-24T06:38:51.75+00:00
Rohan Pande 265 Reputation points
accepted 2024-04-24T10:26:24.1966667+00:00
Rohan Pande 265 Reputation points
0 answers

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

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,530 questions
asked 2024-04-23T10:44:51+00:00
JW 61 Reputation points
commented 2024-04-24T09:18:50.7733333+00:00
RLWA32 40,296 Reputation points
0 answers

Unknown error with WinBioEnrollCommit function in windows biometric framework

I am using the Windows Biometric Framework API and have encountered an error.I followed the onInstall() and onAdd() functions in tutorial #1, and then called the onEnrollOrPractice() function in tutorial #2. …

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,422 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,530 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,178 questions
asked 2024-04-22T16:43:35.3866667+00:00
Trần Ngọc Hiển 0 Reputation points
commented 2024-04-24T02:15:45.1333333+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer

OLEDB stopped working after October updates including current SQL Server update

I have been using the same OLE_DB code via ATL classes for accessing SQL Server for several years. It worked without issue until the October updates. After the last update it now fails with an internal assert (from atldbcli.h) ATLASSUME(m_pAccessor !=…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,721 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,530 questions
asked 2023-10-16T00:50:05.9733333+00:00
David Clark 0 Reputation points
commented 2024-04-23T11:49:54.08+00:00
AlanAtWork 0 Reputation points
0 answers

Tried to resize the image but got an error?

Hi, I'm using the following code to resize this attach image but the output always changes color. cv::Mat dat= cv::imread(path, IMREAD_UNCHANGED); cv::Mat dst; cv::resize(dat, dst, cv::Size(), 0.6, 0.6, INTER_AREA); cv::imwrite(path, dst); I tried…

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,530 questions
asked 2024-04-22T18:12:08.21+00:00
Yen Dang 0 Reputation points
commented 2024-04-23T06:20:31.05+00:00
Minxin Yu 10,031 Reputation points Microsoft Vendor
0 answers

Virus error

I'm trying to run my c++ project but now after it's done building I'm getting an error that says there is a file with a virus or malware, even though I didn't create or include any new files. I also didn't make any changes to the code. I don't really…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,609 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,530 questions
asked 2024-04-22T16:03:18.7266667+00:00
Anoep, Satyendra 0 Reputation points
edited the question 2024-04-23T06:05:16.1566667+00:00
Minxin Yu 10,031 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

The fwscanf_s function doesn't read properly

I have a program in C that have been working fine since I compiled it in an earlier version of Visual Express. Now that I have been compiling it in Visual Studio 2022, the fwscanf_s function doesn't work properly. It reads text and integers. The integers…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,624 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,530 questions
asked 2024-04-21T11:12:33.9666667+00:00
Keitel 61 Reputation points
accepted 2024-04-22T10:25:32.51+00:00
Keitel 61 Reputation points
0 answers

how to support Server authentication using the webservice.h win32 lib header

For the SSL communication, for the sample code which it was developed on Windows win32 – webservice.h library. with the code changes for SSL communication, we are able to establish a SSL communication(we can see SSL handshake is happening) successfully. …

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,422 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,530 questions
asked 2024-04-02T06:10:52.3766667+00:00
Harsha 0 Reputation points
commented 2024-04-22T08:53:44.99+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer

Some doubts regarding after registering for WinUI3 packaged with external location app?

Hi, I was earlier creating a WinUI3 blank unpackaged app. Followed the steps here to make my solution from packaged to unpackaged application. In this project I have disabled the XAML code and created my own entry point (WinMain). Steps that I have…

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.
726 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,530 questions
asked 2024-04-18T11:28:49.1633333+00:00
Rohan Pande 265 Reputation points
answered 2024-04-22T08:11:31.49+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor