3,548 questions with C++-related tags

Sort by: Updated
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,828 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,548 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,548 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,271 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,656 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,548 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,271 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,734 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,548 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,434 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,548 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.
727 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,548 questions
asked 2024-04-18T11:28:49.1633333+00:00
Rohan Pande 315 Reputation points
answered 2024-04-22T08:11:31.49+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer

I would like to make a program in which you have to guess the letters and when you guess all the letters, you have to guess the word. When I enter a wrong letter, the word "wrong" is constantly displayed on the screen.

#include <iostream> #include <windows.h> using namespace std; int main() { int i = 3; int b; char a; string c; system("cls"); int d; cout << "Choose game:" << endl << "1. Zgadnij wyraz"…

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,548 questions
asked 2024-04-18T18:53:58.11+00:00
xayanooo 0 Reputation points
commented 2024-04-22T07:06:49.11+00:00
Minxin Yu 10,271 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

GetDateFormatEx returns a non-zero value but the buffer returned by it is faulty

This is the sample program in which "GetDateFormatEx" returns an invalid string. It is failing in customer's setup. #include <windows.h> #include <iostream> uint64_t shimTime(void) { FILETIME ts; …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,223 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,548 questions
asked 2024-03-14T11:19:20.97+00:00
gupta, shivangi 20 Reputation points
answered 2024-04-22T06:40:13.1+00:00
gupta, shivangi 20 Reputation points
1 answer One of the answers was accepted by the question author.

Win32 Button keeps the blue border on focus lost

In a non-dialog window, is it a known bug or normal behavior that a push button keeps the blue focus border after a control in another window gets focused? I checked to see if the button receives the WM_KILLFOCUS message and yes it does. I noticed that…

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,434 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,548 questions
asked 2024-04-13T02:32:01.41+00:00
NorthernSun 101 Reputation points
edited a comment 2024-04-20T16:13:11.27+00:00
NorthernSun 101 Reputation points
0 answers

bug? Please upvote- Visual Studio 2022 - ATL Add Method not generating stub function in class - fails CoCreateInstance also

Greetings, Update: Bug report link: https://developercommunity.visualstudio.com/t/ATL-support-broken-in-VS2022/10642527 I believe ATL method/property generation is broken in Visual Studio 2022. I can add methods and properties to the interface, but…

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,548 questions
asked 2024-04-18T20:26:06.75+00:00
Donald T. Hess 0 Reputation points
edited a comment 2024-04-20T10:44:44.7666667+00:00
RLWA32 40,856 Reputation points
0 answers

How to fix .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance Error.

Hello, I am seeing this error in the event logs: .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{2EB6DCDB-3250-4D7F-AA42-41B1B84113ED}'. HRESULT: 0x80040154. Process ID (decimal): 28340. Message…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,432 questions
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,327 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,548 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
asked 2023-06-28T08:04:35.5566667+00:00
Bhushan Mendhe 0 Reputation points
edited a comment 2024-04-19T11:02:01.07+00:00
Mike Gledhill 0 Reputation points
3 answers

Help me please >>The Windows SDK version 10.0.22000.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages

Hello, Today was a very bad day for me, i tried for 7 hours since morning to solve this problem by uninstalling, reinstalling multiple times, watching all YouTube videos and reading a lot of articles to try to solve this problem but nothing comes :( :(…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,656 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,548 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
971 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,323 questions
asked 2023-10-07T21:55:47.3033333+00:00
Ahmad Hirzallah 0 Reputation points
commented 2024-04-19T09:46:46.41+00:00
Tianyu Sun-MSFT 27,626 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Upload files to Azure using a custom client

Hello, we are facing an issue uploading files to Azure using a custom client using azure-storage-cpplite which was developed years ago. We are currently in the process of renewing the api but for now we need a way to work around that. The current file…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,462 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,548 questions
asked 2024-04-16T05:59:11.2166667+00:00
Wansart, Christian 20 Reputation points
commented 2024-04-18T12:25:19.9133333+00:00
Wansart, Christian 20 Reputation points
3 answers

Error in Visual Studio 2022 and C++: "The Document cannot be opened. It has been renamed, deleted or removed."

I ran into this problem building a project in Visual Studio 2019. I think it also happens in the 2022 version. Regardless of the version I searched all over Google with my Google-fu skills and I haven't found any answers. I have a C++ project. Its a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,656 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,548 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,377 questions
asked 2023-04-19T13:55:11.5766667+00:00
Azureus 0 Reputation points
answered 2024-04-18T11:36:47.12+00:00
nathan 0 Reputation points
0 answers

How to cope with Microsoft's design flaw of the MFT_MESSAGE_NOTIFY_END_OF_STREAM message, when using the standard media session pipeline with multiple input MFTs ?

Hello! I dont know if this is the right place to ask the following question. But since the MSDN was shutdown by MIcrosoft a few years ago this seems to be the only place. And i will not ask it on Stackoverflow, as i would propably be the best candidate…

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,434 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,548 questions
asked 2024-04-14T21:58:40.37+00:00
FrancisG 0 Reputation points
edited a comment 2024-04-18T07:34:20.4433333+00:00
FrancisG 0 Reputation points
1 answer

Compatibility Issues with SQLClient Libraries After Migrating to .NET 6 from .NET Framework 4.8

I've encountered issues with Microsoft sqlclient packages after upgrading a set of C# projects from .NET Framework 4.8 to .NET 6.0. The setup consists of a primary C# calculator application, a C# bridge for external integration, and a C++/CLI wrapper.…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 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,548 questions
asked 2024-04-17T19:00:39.4733333+00:00
Nova, Sirene R 0 Reputation points
edited the question 2024-04-18T05:38:52.9866667+00:00
Jiachen Li-MSFT 26,831 Reputation points Microsoft Vendor
0 answers

Compatibility Issues with DataClient Libraries After Migrating to .NET 6 from .NET Framework 4.8

I'm reaching out for insights into an issue I've encountered after upgrading a set of C# projects from .NET Framework 4.8 to .NET 6.0. The setup consists of a primary C# calculator application, a C# bridge for external integration, and a C++/CLI wrapper.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,432 questions
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,828 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 questions
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,327 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,548 questions
asked 2024-04-17T18:21:32.6033333+00:00
Nova, Sirene R 0 Reputation points
edited the question 2024-04-17T18:23:32.6333333+00:00
Nova, Sirene R 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix LNK2019 error

I have a desktop program in C that was formerly compiled in Visual Express some years ago, and it worked fine. Then I updated to Visual Studio 2022 to do some minor changes in the source code, and now I get the error LNK2019 and LNK2020.…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,734 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,656 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,548 questions
asked 2024-04-16T21:05:50.7266667+00:00
Keitel 61 Reputation points
commented 2024-04-17T18:22:00.1266667+00:00
Keitel 61 Reputation points
2 answers One of the answers was accepted by the question author.

Create a traditional Windows Desktop application (C++)

Hello ! "I have Visual Studio 2022 and have followed the instructions for creating a traditional Windows Desktop application (C++) available on the page…

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,434 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,548 questions
asked 2024-04-08T17:52:01.1633333+00:00
Benny Hill 20 Reputation points
commented 2024-04-17T14:46:53.0966667+00:00
RLWA32 40,856 Reputation points
5 answers

NVMe Sanitize call returns unexpected error 0x13D

Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…

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,434 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,548 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,552 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
commented 2024-04-17T05:44:08.21+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor