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…
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…
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…
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…
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.
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,…
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.
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…
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…
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…
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. :(
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++ / 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…
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…
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…
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…
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…
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…
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…
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…