Content
Service does not enter the event loop issue
I used the old QtService code from: https://github.com/qtproject/qt-solutions/tree/master/qtservice and created a service to run npm start command which will start my website on Windows startup. When adding -exec argument, starting in app mode it works…
In a console application, can I use cin to input character strings with space characters in them?
I have a novice question which didn't appear in the Q&A listing. In a console application, can I use CIN to input character strings that have space characters in them?
C++ dialog-box to choose a file
Dear C++ experrts, I am developing a C++ code on Windows 10. It deals with all files with the extension .lan in a directory. At present the directory pathname is hardcoded. I want the code to pop up a dialogue box that shows all the files in the…
compiler limit: string exceeds 65535 bytes in length
Hi There, I had encountered the following error on Visual studio 2017, "fatal error C1091: compiler limit: string exceeds 65535 bytes in length," I have exceeded the maximum allowed length for a string in the Visual Studio 2017 compiler.…
C++ AccessibleObjectFromWindow always return 0
Hello guys, I'm new developer windows. I want to get ROLE_SYSTEM_TEXT of application in window but I got trouble with function AccessibleObjectFromWindow I read the docs and try to use this fuction but it not work Please help me fix it. This is…
What is the license terms for "example code" in learn.microsoft
Hello All, I would like to know the licensing terms of "example code" mentioned in learn.microsoft for different articles. More specific, in the below link where there is an example code - "This example calls the GetLogonSID and…
Is it explicit or implicit type conversion?
When a format specifier of a type that is different from the variable is used with printf to show a value of another data type then it's implicit type conversion or explicit one? #include <stdio.h> int main() { double a = 3.5; int b = 6; …
Why all the characters of an array are not printed?
The following program uses an array of size 10 is assigned with a '-' character and then takes a string "hello" from the user input, but while printing the array it only shows the word "hello". Whereas, it shows all the 10 characters…
How to calculate offset for containing file inside orphaned child VHD?
I have an orphaned child vhd(differencing Vhd). In c++ code, I wanted to parse the byte stream and identify the files in it. Is there any way to locate offset for file?
How can I install older version of MSVC - Microsoft Visual C++ Compiler
I want to install MVSC 14.33.31629 However currently it is installing only 14.36.32532 Anyway to install older versions somehow? Installing from the VisualStudioSetup.exe
CaptureElement not found in WinUI 3
Pls try the below link: https://learn.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.captureelement Equivalent WinUI class: Microsoft.UI.Xaml.Controls.CaptureElement. 404 - Page not found Hmm, we couldn't find this link,…
Visual Studio 2019 : full Standalone installation
I am looking for a full Standalone installation to Visual Studio 2019 (because no possibility to Internet connexion). Thx
Couldn't install Microsoft.Net.4.8.FullRedist.20H2 when I try to install Visual Studio
Something went wrong with the install. You can troubleshoot the package failures by: 1. Search for solutions using the search URL below for each package failure 2. Modify your selections for the affected workloads or components and then retry…
How to set font for single control in Dialog?
Hello everybody, I cannot set the font size for a single control in a Dialog Please help me. Greetings
Begginer level C++ Socket transfer Server / Client
Hi! Can someone point me to a good and easy to follow tutorial/guide/project example for sockets (server + client, and I need multithreading for server)? For what I'm working on, I only need to transfer strings (it would be nice if you can send…
How to fix error atl/mfc atlcomcli.h line 291 vscode 2022
hello guys, I'm new developer and I want to get my active url for google chrome for my project tracking. I run code in this answer : https://stackoverflow.com/questions/48504300/get-active-tab-url-in-chrome-with-c But when run code, I got error from atl…
How to run msvc link.exe from cmd line or system with spaces in library path?
I am trying to run msvc linker (link.exe) from C++ using system(). However, the library path I specify in /libpath: has spaces. I just read here that: "On the command line, an option consists of an option specifier, either a dash (-) or a forward…
How to break up a long loop using a CDialog
If I have a long loop, is there any way to break it using a CDialog prompted to user ? Psuedocode: while (pRecordset->isEOF()) { // my custom code if (flag) break; } During this loop, I want to display to user a CDialog with a…
How to modify the second parameter of PATHAPPEND with a user-defined variable? mine that is.
Question: I am trying to modify the second parameter of PATHAPPEND from "L "TEST" to a user-supplied variable that holds a directory address provided by the developer. Xiaopo Yang provided guidance on solving a problem with getting full…
How to gain full read/write access to user's AppData folder using a "C" program?
Question: I've tried several times to access the user's AppData area programmatically using MSVC 2019 "C" program, but I am unable to gain full read/write access to it. Though it's easy to manually put a file into the area, using a program…