3,693 questions with C++-related tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

Any sample code in C/C++ to Publish and Subscribe to Azure Web PubSub?

I am looking for sample C/C++ code to Publish and Subscribe to Azure Web PubSub. Specifically, I want to send data from a microcontroller programmed in C/C++ to a server with Azure Web PubSub. Are there any resources available that could help me achieve…

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
74 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,693 questions
asked 2024-05-01T10:49:20.29+00:00
Williams Celis 30 Reputation points
edited a comment 2024-08-14T12:57:40.1166667+00:00
Zitong Yang 10 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

How can I distinguish between Windows Server & Windows Server Core machines?

Hi, I am trying to create a C++ application which is an interactive application. My use case is that I don't want to run the application on Windows Server Core but should be possible running on Windows Server machine. Even if the user has started it…

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,693 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,800 questions
asked 2024-08-06T05:40:56.4733333+00:00
Rohan Pande 445 Reputation points
commented 2024-08-09T06:07:32.23+00:00
Rohan Pande 445 Reputation points
0 answers

mklink for hpp file got an error

Hi: I am trying to build a ros2 demo which requires a symlink in the middle, and I got an error here: Starting >>> examples_rclcpp_minimal_composition --- stderr: examples_rclcpp_cbg_executor CMake Error: failed to create symbolic link…

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
888 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,693 questions
asked 2024-08-07T09:50:09.1833333+00:00
Junjun Fan(Jason) 0 Reputation points
commented 2024-08-08T08:25:24.09+00:00
Junjun Fan(Jason) 0 Reputation points
1 answer

how to push the received bytes to std::list?

how to push the received bytes? I do not how many bytes I will receive and when to use them so can I use std::list<char> buffer? char buf[3096]={0}; while(true){ memset(buf,0,3096); int bytes=recv(socket,buf,3096); //here how to push the buf 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,693 questions
asked 2024-08-06T15:51:50.06+00:00
mc 4,436 Reputation points
commented 2024-08-08T03:00:04.93+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor
1 answer

windows errors

I want to ask a question about windows errors. This error appears when opening an .exe application without any content. i want to cause the same error in c++ code, also there is an error with user and password input.

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,693 questions
asked 2024-08-03T05:42:44.9966667+00:00
Кирилл Анюшкевич 0 Reputation points
commented 2024-08-07T02:30:13.9666667+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Can a x64 app call a x86 ocx control in c# on windows 10?

I have a ocx control, which is compiled with x86, I have a c# app, whick is compiled with AnyCPU, because I want to run this c# app in any platform either x86 or x64 In my c# app, it calls some function in ocx, the question is : When the platform is x64,…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,858 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,693 questions
asked 2024-08-06T07:27:13.9133333+00:00
Fiona 105 Reputation points
accepted 2024-08-07T01:07:16.15+00:00
Fiona 105 Reputation points
2 answers One of the answers was accepted by the question author.

C++ - compile: error MSB4057: The target "Build" does not exist in the project.

Trying to compile / build a C++ project, but keep on getting this error: C++ - compile: error MSB4057: The target "Build" does not exist in the project.

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,693 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.
991 questions
asked 2024-08-02T11:57:01.73+00:00
accepted 2024-08-06T06:59:16.4766667+00:00
1 answer

Handle window.rezieTo in WebView2

hello. I am currently developing a Win32 C++ based WebView2 program. I am writing this post because I have a question regarding WebView2. I know that Webview2 API provides a callback that can be handled when calling window.open. (add_NewWindowRequested…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,298 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,693 questions
asked 2024-08-02T05:26:08.59+00:00
홍준 이 0 Reputation points
answered 2024-08-05T06:55:42.6433333+00:00
ShiJieLi-MSFT 9,331 Reputation points Microsoft Vendor
1 answer

How to get the geolocation position based on the WiFi source always instead of the IPAddress

Hi, I would like to know how can I get the geolocation based on the WiFi source instead of the IP address. I was getting the geolocation based on the WiFi in last month in my Windows 11 system, but it started giving the geo location based on the IP…

Universal Windows Platform (UWP)
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,693 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-07-19T10:46:29.9333333+00:00
67883078 41 Reputation points
commented 2024-08-04T18:26:47.5966667+00:00
67883078 41 Reputation points
3 answers

Despite everything MSVCR100.dll still missing

Hello. When isntalling files, mostly including but not limited to cracks, i get the error that MSVCR100.dll is missing. This is the error i am getting, it is always the same. Things i tried: Uninstalling all C++ Redistributables and…

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,693 questions
asked 2021-01-18T07:46:53.347+00:00
Jakub Feik 1 Reputation point
commented 2024-08-03T08:22:34.3933333+00:00
Leo Beneš 0 Reputation points
4 answers One of the answers was accepted by the question author.

IO Completion Ports - error 998

Explain, please, what am I doing wrong? I am trying to make a simple client based on IOCP: But, i always get the gatelasterror error 998 when calling GetQueuedCompletionStatus. I just can't understand - what I'm doing wrong. :(

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,592 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,693 questions
asked 2021-05-15T14:45:00.803+00:00
Andreyka_ 136 Reputation points
answered 2024-08-02T19:10:01.0633333+00:00
stephon110 150 Reputation points
1 answer

SQL Server KeepAlive

Hi, ALL, I'm trying to write a program connecting to MS SQL Server. The program will be using ODBC to connect and SQLDriverConnect() API to do a connection. What I wonder is whether it is possible from the C/C++ ODBC interface set the…

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,693 questions
asked 2024-08-01T22:19:34.0533333+00:00
Igor Korot 6 Reputation points
edited a comment 2024-08-02T09:32:07.7566667+00:00
Minxin Yu 11,506 Reputation points Microsoft Vendor
1 answer

C++ / Sqlite questions

I've created a Visual Studio C++ application for retrieving results from a Sqlite database. As, on getting those results, I was receiving wrong accented characters, I sucessfully changed that part of my code to static_cast<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,693 questions
asked 2024-07-27T22:56:22.4566667+00:00
António Almeida 1 Reputation point
edited an answer 2024-08-02T08:28:45.86+00:00
Flaviu_ 971 Reputation points
1 answer

why my application freezes when reading a nvenc-h264 encoded video file in Windows 10 but not on windows 11

Hi Everyone, I have the video file with the following details: General Complete name : D:\this_video_causes_error.avi Format : AVI Format/Info : Audio Video Interleave File size : 16.7 MiB Duration : 1 min 0 s Overall bit rate mode : Variable Overall bit…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 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,592 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,693 questions
asked 2024-07-31T05:42:16.1966667+00:00
Ashish Patil 0 Reputation points
commented 2024-08-01T07:07:41.7633333+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
1 answer

When using the Win32 GetAppliedGPOList in C, the GPO list pointer is always NULL even when trying multiple GUIDs and even when the API returns success.

In the code below, pGPOList (the GPO list) is always NULL even when the GetAppliedGPOList returns success. I have tried multiple group policy extension GUIDs, but no luck. What am I doing wrong? This also happens when I try GetAppliedGPOList with user…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,592 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,693 questions
asked 2024-07-24T12:56:07.7066667+00:00
Madden, John 5 Reputation points
commented 2024-08-01T05:46:15.93+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
1 answer

Can't reverse back to shortpath?

Hi, I have this folder path in short-form like this C:\Users\admin\Downloads\NEWFOL~2\NEWFOL~1\...\NEWFOL~1 using GetLongPathName, then I have C:\Users\admin\Downloads\New folder (2) - Copy - Copy test\New folder\...\New folder but now using…

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,592 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,693 questions
asked 2024-07-21T22:47:39.6433333+00:00
DangDKhanh-2637 946 Reputation points
commented 2024-07-31T09:01:03.3966667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Create and name multiple dialogs

Windows 11, VS 2022, version 17.7.6 The goal is to create a project with multiple dialogs.  I found the process to create some dialogs, but the dialogs cannot be renamed and when the dialogs are closed within the VS windows I cannot reopen it. Here is my…

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,693 questions
asked 2024-07-27T04:03:54.8466667+00:00
Bryan Kelly 361 Reputation points
edited a comment 2024-07-31T06:27:29.66+00:00
RLWA32 45,326 Reputation points
2 answers

Visual C++ (VS 17.10.4) don't show template errors

After updating to the latest version of the studio, error output stopped appearing when compiling templates. That in a project with several thousand files makes work almost impossible. What do I 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,059 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,693 questions
asked 2024-07-20T15:44:40.9566667+00:00
Никольский Данил 0 Reputation points
commented 2024-07-31T05:02:25.31+00:00
Tianyu Sun-MSFT 30,356 Reputation points Microsoft Vendor
0 answers

Issue with Inline Images in Outlook Appointments Created via C++/MAPI Plugin

Hello, We have developed an Outlook plugin using C++ and MAPI, which interacts with our own server. The issue we are encountering is as follows: When we create an appointment with an inline image from the server/backend side, the image displays correctly…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,724 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,693 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
522 questions
asked 2024-07-30T07:45:12.5766667+00:00
Manish Khande 0 Reputation points
3 answers

MFC application Crashes intermittently in Clr.dll with internal error in the .Net Runtime ( Windows 10)

We have a C++ MFC application with COM interop for Managed C# code. Recently migrated to Windows 10 from windows 7. Application crashes intermittently pointing to below information in crash dump Exception code: C0000005 Exception Info: The…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
334 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,693 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,153 questions
asked 2021-12-01T10:22:50.493+00:00
Kumar Manish 1 Reputation point
answered 2024-07-30T06:44:56.5866667+00:00
durongzeskype 20 Reputation points