how to call a function called 'add' in ml64
How can I write assembler code that defines, uses and maybe exports a function called, say, add call out to a function called, say, add This is not a problem for masm32 as all functions are really called _func , ie _add But x64 calling convention…
Why is the size of the client area for Tab Control received seem a little bit too large?
#include "framework.h" #include "Win32-Desktop-Tab-Overlay.h" #include <commctrl.h> #include <iostream> #pragma comment(lib, "comctl32.lib") #define ID_TABCTRL 100 #define MAX_LOADSTRING 100 HINSTANCE hInst; HWND…
Server - Socket to receive XML messages, dialog problem
Hello, I get into the receiving routine. But pThis is NULL and UpdateReceiveEdit causes an exception. What can the solution look like and what is the…
Server - Socket to receive XML messages
I'm looking for a good server in a dialog-based MFC application that will send me a request. Does anyone know a good example? The request comes from the client based on the event. The server sends the response or timeout within 20 seconds. Like…
How do we troubleshoot this msbuild error MSB6003?
We have a moderately large C++ codebase that builds with VS2017 (15.9.19 - I know, we're well behind on updates to VS). We are getting intermittent build failures with this error: error MSB6003: The specified task executable "CL.exe" could not…
How to use windbg to analyze the allocation size and quantity of heap memory
I want to analyze the memory allocation details of heap32. How should I operate it? I tried "!heap-s", and then "!heap-h". However, the analyzed result confuses me. It shows very little memory
How to fix Win32 error 2731 on WinMain() function cannot be overloaded.
I am writing code for an x86 project in Studio 2022. The code comes from a book on game programming. Everytime I try to compile the program, I get the error message 2731 stating that the WinMain() function cannot be overloaded. My declaration is the…
Build DLL while debunning
I have searched around the web but did not find any discussions relating to this; I'm aware that Visual Studio has a Hotreload feature, however, that is not what I'm referring to here. Let's say I have Project A that builds a DLL and Project B that…
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…
How to open COM port whit CreateFileA inside of a class method?
I am using winapi to create a serial connexion with an arduino, I used: HANDLE hSerial = CreateFileA("COM3", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); To open serial port and it returns a valid handle but…
How to set monitor scaling to recommended or desired scaling with c++ ?
I am trying to set scaling to windows recommended scaling or to desired one (100%,150%,...) for monitor in C++. I have monitor handles (type: HMONITOR). Is that enough or do I need anything else how would I set scaling from code.
How to get a notice when a up aroow key is pressed in C language
Hi, I like to move a picture on the screen by clicking up, down, right, left arrow on the key board. Is there a way to get a notice in my software when “up arrow key” in keyboard is pressed, as an example. I tried bres=IsInputKey(0); How do I find out…
Why are system's MSVC runtime DLLs used instead of ours ones sometimes?
In order to decrease our app's installer size and do not force the user to download MSVC runtime redistributable installer, we include all the MSVC runtime DLLs we need (and only them) into our installer using the following technique. All was working…
Future Support for int128 in MSVC and C++ Standard Roadmap
Hi , We currently rely on a custom implementation for 128-bit integer support in our cross-platform codebase, due to the absence of native int128/uint128 support in MSVC. Could you please confirm: Is there any plan or intent within Microsoft to support…
Is there Documentation on ICompositor?
I can't find any documentation on the ICompositor interace, anywhere. Are there docs out there?
How do do I disable suggestions in Visual Studio C++?
Any way to disable suggestions only in Visual Studio 2017? I'm talking about cpp Suggested Action Format suggestions specifically. Thank you.

how to solve the microsoft c++ "minimum runtime" problem
Whenever I try to install the most up-to-date Microsoft C++, the installer encounters a problem, the message "the feature you are trying to use is on a network resource that is unavailable" appears.

Media Foundation Always Uses Intel iGPU when it's disabled in Device manager and in BIOS (mux)
When using the MF in this config: CHECK_HR(MFCreateAttributes(&pAttributes, 1)); CHECK_HR(pAttributes->SetUINT32(MF_LOW_LATENCY, TRUE)); CHECK_HR(pAttributes->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, TRUE)); …
Morse Code Translator
For an assignment, I'm unable to use the strings. Only c-style strings. Any help in solving this problem would be highly appreciated. Source: Online Morse Code Translator a5.cpp:45:10: error: invalid operands to binary expression ('char [1]' and…
Visual c++ Version Vulnerability and How to Check EOL
I want to check the vulnerability and EOL for VISUAL C++ version. Please check how to check CVE&CVSS(vulnerability) and EOL. EX) Thanks for your help.