3,818 questions with C++-related tags

Sort by: Updated
0 answers

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,276 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,818 questions
asked 2025-01-11T07:13:46.6766667+00:00
Igor Korot 6 Reputation points
edited the question 2025-01-11T15:52:33.44+00:00
Igor Korot 6 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,698 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,818 questions
asked 2024-12-30T21:49:19.45+00:00
CDev-8220 220 Reputation points
commented 2025-01-11T14:34:06.6266667+00:00
CDev-8220 220 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,337 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,818 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,376 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,818 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,396 questions
asked 2025-01-03T13:22:21.1066667+00:00
Timothé VAN DEPUTTE 15 Reputation points
edited a comment 2025-01-10T16:40:32.8833333+00:00
Darran Rowe 1,321 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,818 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,657 questions
asked 2025-01-09T16:50:10.44+00:00
Jeff Faust 0 Reputation points
commented 2025-01-10T03:18:24.1666667+00:00
Minxin Yu 12,351 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,337 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,818 questions
asked 2025-01-08T03:23:05.77+00:00
alice alice 80 Reputation points
edited a comment 2025-01-10T01:22:51.2566667+00:00
Minxin Yu 12,351 Reputation points Microsoft Vendor
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,276 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,818 questions
asked 2025-01-09T04:03:20.51+00:00
Igor Korot 6 Reputation points
commented 2025-01-09T20:59:12.3766667+00:00
Igor Korot 6 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,337 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,818 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-09T15:45:24.2566667+00:00
RLWA32 46,376 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,337 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,818 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,376 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,947 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,524 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,818 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,337 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,818 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,396 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,376 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,704 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,818 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,704 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,818 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,704 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,818 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,337 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,818 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
2 answers One of the answers was accepted by the question author.

visual studio windows form call error

when i try to add windows form to my project , it outputs errors i make clr empty project .net framework Instances of this error (1) Hide Call Stack at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider() …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,915 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,818 questions
asked 2021-04-26T10:43:01.043+00:00
shams 21 Reputation points
commented 2025-01-03T10:50:28.1133333+00:00
Giovanni Arzedi 0 Reputation points
1 answer

Dialog box before launching of application in winui3 c++/winrt

I am working in winui3 c++/winrt and I need to show a dialog box just before the launch of my application The dialog box will say OK and Cancel on click of OK we launch the application and on cancel we exit. I tried a few approaches but it is giving…

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.
807 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,818 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
826 questions
asked 2024-12-18T06:27:05.37+00:00
Vivek Rao 20 Reputation points
commented 2025-01-03T09:53:29.2666667+00:00
Vivek Rao 20 Reputation points
1 answer

WinUI3: How to print framework element using cpp

My app have to windows. Depending on which the print is called from we getting the actual hWnd. My issue is how to to get an instance of printManager or is there another way to print from winui 3? // file: MainWindow.xaml.cpp ... #include…

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.
807 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,818 questions
asked 2024-12-24T23:57:15.6233333+00:00
Jens Tirsvad Nielsen 0 Reputation points
commented 2025-01-03T02:33:25.23+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
1 answer

VS2019 to compiler cmake report error

when I create a cmake project with VS 2019 (16.11.5), output of cmake will report error: "Provided 'inheritEnvironments' doesn't provide the necessary environment variable needed to set the context for the configuration x64-Debug. .....".

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,818 questions
asked 2024-12-30T11:10:47.9766667+00:00
Obvious King 0 Reputation points
edited a comment 2024-12-31T07:30:55.6366667+00:00
Minxin Yu 12,351 Reputation points Microsoft Vendor
1 answer

Visual Studio 2019: LNK2019 error from msvcrtd.lib(utility.obj)

I'm working on upgrading a C++ DLL project (Debug, x86) from VS2008 to VS2019. While doing so, got many different link error along the way and got it resolved by adding the dependencies - ucrtd.lib, vcruntimed.lib and msvcrtd.lib. But currently stuck…

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,818 questions
asked 2022-05-17T20:57:52.893+00:00
Souvik Maiti 1 Reputation point
answered 2024-12-31T06:29:25.95+00:00
Guan Wang 0 Reputation points