3,829 questions with C++-related tags

Sort by: Updated
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.
11,208 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,829 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
asked 2022-11-02T01:24:42.513+00:00
Julie Jiang 6 Reputation points
commented 2025-01-19T03:51:44.0966667+00:00
Philippe Majerus 0 Reputation points
1 answer

How to debug "Invalid transaction state" error in ODBC?

Hi, ALL, I have an application that throws an aforementioned error upon exit/disconnect. I know that every transaction I start I COMMIT/ROLLBACK and those transactions are doing "CREATE TABLE/INSERT" statements. However I am also doing SELECT…

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,320 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,829 questions
asked 2025-01-18T19:19:58.4133333+00:00
Igor Korot 26 Reputation points
commented 2025-01-18T21:23:17.26+00:00
Erland Sommarskog 115.6K Reputation points MVP
0 answers

Solution build compiled without error but no .sys file created

I am currently working on a file system mini-filter driver in Windows. I've set up my development environment with the following: Development Tools: Visual Studio (latest version) Windows Driver Kit (WDK) Windows SDK Setup Details: I configured 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,358 questions
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.
813 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,829 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
146 questions
asked 2025-01-18T18:18:26.8033333+00:00
Beast 0 Reputation points
commented 2025-01-18T20:02:23.2+00:00
Viorel 119K Reputation points
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,719 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,829 questions
asked 2024-12-30T21:49:19.45+00:00
CDev-8220 220 Reputation points
commented 2025-01-18T14:01:40.2+00:00
Darran Rowe 1,341 Reputation points
0 answers

OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2

We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…

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,709 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,829 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 5 Reputation points
commented 2025-01-17T20:41:13.4833333+00:00
Kevin Stanush 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to execute in parallel C++ tests written with the Microsoft Unit Testing Framework ?

We are writing C++ tests with the help of Microsoft Unit Testing Framework (https://learn.microsoft.com/en-us/visualstudio/test/how-to-use-microsoft-test-framework-for-cpp?view=vs-2022#run-the-tests) Tests are running fine, it works within Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,358 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,829 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
354 questions
asked 2025-01-15T10:58:01.3766667+00:00
Julianis 20 Reputation points
accepted 2025-01-17T08:05:23.63+00:00
Julianis 20 Reputation points
0 answers

How to fix LNK1181 error (including libs)

Severity Code Description Project File Line Suppression State Details Error LNK1181 cannot open input file 'C:\6money\libs.obj' Dll1 C:\6money\Money\Dll1\LINK 1 Hello, I'm currently facing an issue when trying to link the lua54.lib library in my…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,358 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,829 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,016 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
354 questions
asked 2025-01-15T17:57:11.9633333+00:00
Yuri 0 Reputation points
commented 2025-01-17T07:12:29.2533333+00:00
Minxin Yu 12,356 Reputation points Microsoft Vendor
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,358 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,829 questions
asked 2025-01-08T03:23:05.77+00:00
alice alice 80 Reputation points
commented 2025-01-17T06:59:13.96+00:00
Minxin Yu 12,356 Reputation points Microsoft Vendor
0 answers

why GATTSetCharacteristicValue return 80070005 on windows8.1

when i use GATTSetCharacteristicValue Send data to ble device (on windows 8.1), but it return hr=80070005. it will return ok the program on windows10 or over. anybody have this problem.

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.
813 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,829 questions
asked 2025-01-16T07:07:16.66+00:00
Agilemin 0 Reputation points
commented 2025-01-17T02:09:08.3466667+00:00
Jeanine Zhang-MSFT 10,436 Reputation points Microsoft Vendor
1 answer

How to find the Disk partition style using IOCTL?

I am trying to find the disk partition style using IOCTL. Earlier, I was using WMI, but in this particular code, I need to provide the physical drive path. What should be given as input, and how can I find or determine which physical drive path to…

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,829 questions
asked 2025-01-16T07:18:06.24+00:00
Gopika Lakshmi 0 Reputation points
edited an answer 2025-01-16T14:29:21.1566667+00:00
RLWA32 46,461 Reputation points
1 answer

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,358 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,829 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,016 questions
asked 2025-01-06T04:24:05.24+00:00
Sai Krishna 0 Reputation points
answered 2025-01-16T08:11:00.38+00:00
Sai Krishna 0 Reputation points
1 answer

how to get firmware type of windows?

I tried the below method, but it seems vague. if (EnablePrivilege(SE_SYSTEM_ENVIRONMENT_PRIVILEGE) != ERROR_SUCCESS) { return 0; //(unknown) } BYTE buffer[1]; DWORD result = GetFirmwareEnvironmentVariableW(SECURE_BOOT, EFI_GUID, buffer,…

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,829 questions
asked 2025-01-16T07:06:30.9433333+00:00
Gopika Lakshmi 0 Reputation points
edited an answer 2025-01-16T07:37:19.8333333+00:00
Minxin Yu 12,356 Reputation points Microsoft Vendor
0 answers

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,829 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
asked 2025-01-13T20:32:01.1366667+00:00
Villarreal, Jesus 0 Reputation points
commented 2025-01-15T15:38:11.3566667+00:00
Villarreal, Jesus 0 Reputation points
1 answer

[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,829 questions
asked 2025-01-14T17:52:25.7733333+00:00
sValentin 61 Reputation points
answered 2025-01-15T00:03:19.0133333+00:00
Bruce (SqlWork.com) 69,501 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,320 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,829 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

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,829 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 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,341 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,829 questions
asked 2025-01-13T13:03:28.84+00:00
Ferhat Güler 20 Reputation points
commented 2025-01-13T18:49:27.0533333+00:00
Michael Taylor 56,271 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,829 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,659 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 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,320 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,829 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
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,358 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,829 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,461 Reputation points