3,823 questions with C++-related tags

Sort by: Updated
0 answers

[Beginner] Multithreading C++ Socket

In C++ (well I think in every programming language) what is better to do when dealing with multithreading socket? Cap the number of threads it can execute the requests so that you always have 1/2 thread available for accepting new connections? In this…

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,823 questions
asked 2025-01-14T17:52:25.7733333+00:00
sValentin 61 Reputation points
edited the question 2025-01-14T17:57:50.9533333+00:00
sValentin 61 Reputation points
1 answer

Connection string failure with SQL Server ODBC connection

Hi, ALL, I have weird problem as follows: In my program I use SQLDriverConnect() to connect to the SQL Server. Before this call I modify the connection string in order to use MARS. I set up DSN and if everything is good, meaning I run the program and I…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,288 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,823 questions
asked 2025-01-13T17:25:54.02+00:00
Igor Korot 26 Reputation points
commented 2025-01-14T17:43:08.9066667+00:00
Igor Korot 26 Reputation points
1 answer

Hello, I have an application made in C NOT C++ in which when painting or creating a LISTBOX control it gives the error Exception code: 0xc000041d in the CreateWindow statement in WINDOWS 11 24H2

Hello, I have an application made in C NOT C++ in which when painting or creating a LISTBOX control it gives the error Exception code: 0xc000041d in the CreateWindow statement in WINDOWS 11 24H2 Has anyone else had this happen to them and how did they…

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,823 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,426 questions
asked 2025-01-13T20:32:01.1366667+00:00
Villarreal, Jesus 0 Reputation points
answered 2025-01-14T15:48:25.4933333+00:00
Villarreal, Jesus 0 Reputation points
0 answers

WixProj output name

I have this wixproj, whose output file is an msi.How can I set the name of this MSI.I have tried using outputname tag but its not part of property group as per this - [http://schemas.microsoft.com/developer/msbuild/2003]

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.
11,194 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,823 questions
asked 2025-01-14T07:11:02.0733333+00:00
Bevan Thomas 60 Reputation points
commented 2025-01-14T10:03:48.4033333+00:00
RLWA32 46,386 Reputation points
1 answer

Changes in floating point calculation since Windows 24H2

Hello, Since last windows 11 update (24H2), we observe slight differences between our continuous integration (WinServer 2022 21H2) and our develpers computers regarding some of our double precision calculation. We checked iteratively versions of…

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,823 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,426 questions
asked 2025-01-03T13:22:21.1066667+00:00
Timothé VAN DEPUTTE 15 Reputation points
commented 2025-01-13T19:46:47.4433333+00:00
Darran Rowe 1,331 Reputation points
1 answer One of the answers was accepted by the question author.

MFC Dialog APP Dialog tipe project creation Problem "error hresult-e fail has been returned from a call to a Com component"

I am Using VS 2022 Community Edition, When I create MFC Dialog base Aplication by using wizart at the end I receive "error hresult-e fail has been returned from a call to a Com component" error. VS give error and I cant see project created in…

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,823 questions
asked 2025-01-13T13:03:28.84+00:00
Ferhat Güler 0 Reputation points
commented 2025-01-13T18:49:27.0533333+00:00
Michael Taylor 56,091 Reputation points
0 answers

MPI fails when mixing Intel and AMD

The following code works fine with only Intel or only AMD machines. When I launch from an Intel machine, with two worker nodes. #include <iostream> #include <mpi.h> int main() { int argc = 0; MPI_Init(&argc, nullptr); const…

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,823 questions
Windows Hardware Performance
Windows Hardware Performance
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.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,658 questions
asked 2025-01-09T16:50:10.44+00:00
Jeff Faust 0 Reputation points
edited the question 2025-01-13T17:59:33.8+00:00
Jeff Faust 0 Reputation points
1 answer

How to edit .rc file

Which edit IDE is recommend for .rc file https://github.com/chromiumembedded/cef ... /shared.rc Simple edits can be done by hand (it’s a text file), or use Visual Studio for more complex edits like defining dialogs, etc. See…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 questions
asked 2025-01-08T03:23:05.77+00:00
alice alice 80 Reputation points
edited a comment 2025-01-13T05:32:21.45+00:00
Minxin Yu 12,351 Reputation points Microsoft Vendor
0 answers

Why do I have problems when trying to import a header unit?

I used VS Developer PowerShell to create a header unit file from a header file. cl /std:c++20 /exportHeader /headerName:quote HeadersBase.h Not sure if that was the right thing to do. Then I created an empty project to see if I can import the header unit…

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,705 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,823 questions
asked 2024-12-30T21:49:19.45+00:00
CDev-8220 220 Reputation points
commented 2025-01-12T23:32:35.2033333+00:00
CDev-8220 220 Reputation points
1 answer One of the answers was accepted by the question author.

SQLBindParameter/SQLExecute returns SQL_NO_DATA on second iteration

Hi, ALL, I'm trying to run the following scenario: std::wstring query = L"INSERT INTO abcattbl SELECT ?, ?, (SELECT object_id FROM sys.objects o, sys.schemas s WHERE s.schema_id = o.schema_id AND o.name = ? AND s.name = ?), '', 8, 400, 'N', 0, 0,…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,288 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,823 questions
asked 2025-01-11T07:13:46.6766667+00:00
Igor Korot 26 Reputation points
accepted 2025-01-12T15:59:51.02+00:00
Igor Korot 26 Reputation points
0 answers

GUI application Execution fails after porting an application from VS2015 to VS2022.

There is a GUI Application that is based on C++ that we are trying to update from VS2015 to VS2022. The application after the upgrade is not functioning as expected. The executable does not even open although the build is successful. In VS2015 though,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 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.
1,015 questions
asked 2025-01-06T04:24:05.24+00:00
Sai Krishna 0 Reputation points
edited a comment 2025-01-11T22:11:50.4266667+00:00
Darran Rowe 1,331 Reputation points
1 answer One of the answers was accepted by the question author.

MS Visual Studio C2131 - expression did not evaluate to a constant - C++

Hello. I have a simple code in MS Visual Studio with C++ that aims to enter values ​​into a two-dimensional matrix and display the entered values ​​on the screen. When I write exactly the same code in DevC++, it works but in MS Visual Studio, it gives…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 questions
asked 2025-01-07T09:19:04.34+00:00
Isaac GM 20 Reputation points
commented 2025-01-11T11:26:03.0833333+00:00
RLWA32 46,386 Reputation points
1 answer

Quering the SQL Server return SQL_NEED_DATA

Hi, ALL, Here is what I have: I made the following query: query2 = L"INSERT INTO abcattbl SELECT ?, 'abcatcol', (SELECT object_id FROM sys.objects o, sys.schemas s WHERE s.schema_id = o.schema_id AND o.name = 'abcatcol' AND s.name = 'dbo'), …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,288 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,823 questions
asked 2025-01-09T04:03:20.51+00:00
Igor Korot 26 Reputation points
commented 2025-01-09T20:59:12.3766667+00:00
Igor Korot 26 Reputation points
0 answers

Since Update to VS2022 17.12.3 I have many error C2471: cannot update program database

Hi, Since I've update all my build agents with Visual Studio 2022 to version 17.12.3 (instead of 17.11.4) I see a lot of my build to fail with the same error  149>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ObjectArray.h(338,1):…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 questions
asked 2025-01-07T16:27:37.3666667+00:00
Gérald Fauvelle 0 Reputation points
commented 2025-01-09T09:11:55.6033333+00:00
RLWA32 46,386 Reputation points
0 answers

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

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,960 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,544 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,823 questions
asked 2024-05-02T16:34:09.79+00:00
TRoll 0 Reputation points
commented 2025-01-07T11:50:43.6133333+00:00
Mr. B 0 Reputation points
1 answer

I am using Qt 5.15.2 with Visual Studio Professional 2022 Version 17.12.3. I am getting below warning while opening explorer using QFileDialog. Please help me to resolve this issue.

onecoreuap\internal\shell\inc\SrcPkg\FileExplorerSessionWatcher\inc\FileExplorerSessionWatcher.h(843)\SHELL32.dll!00007FFEBBAA1DB4: (caller: 00007FFEBB9E65F2) ReturnHr(1) tid(66d8) 80004001 Not…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,426 questions
asked 2025-01-06T07:53:19.51+00:00
Kuntoji, Vinod 0 Reputation points
commented 2025-01-06T12:23:37.0133333+00:00
RLWA32 46,386 Reputation points
1 answer

Information not available, no symbols loaded for AppxPackaging.dll

Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…

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,705 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,823 questions
asked 2024-12-09T04:11:02.1666667+00:00
Tran Thi Hieu Ngan 0 Reputation points
answered 2025-01-06T08:14:56.9733333+00:00
AinhoaGiles 155 Reputation points
1 answer

C++ animate anything correctly

I want to understand how to correctly display something in win32. For example, how to make a square that will move with sin() up and down, so that it is correct and not as I did it through CreateCompatibleDC and create a Bitmap and then move all of it…

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,705 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,823 questions
asked 2024-12-27T21:21:56.48+00:00
someone 20 Reputation points
commented 2025-01-06T07:45:01.5066667+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
1 answer

Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString

I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…

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,705 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,823 questions
asked 2024-12-17T05:51:39.31+00:00
Sreekanth N Kartha 0 Reputation points
commented 2025-01-06T07:43:58.48+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
2 answers

How to fix " cl : Command line error D8003 : missing source filename" ?

the output: my project structure, main.cpp's header is , #include <glad/include/glad/glad.h> #include <glfw/include/GLFW/glfw3.h> build.bat https://pastebin.com/TqUTtKyP what am i doing wrong ? is it the slashes that interrupts…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 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,823 questions
asked 2025-01-03T02:00:02.5766667+00:00
Barath Raj M 0 Reputation points
commented 2025-01-06T05:50:16.89+00:00
Minxin Yu 12,351 Reputation points Microsoft Vendor