How to launch a desktop application from win32 c++ desktop application? - c++

I built a windows desktop application using Electron and packaged it. I would like to have an application built in win32 / c++ be able to call and open my electron application. Is their a command / class / function or feature that I can call from my win32 c++ application that will call and open my electron executable?

Related

Can I add a form application to my C++ console application

I have a C++ console application. I do some operations with keys. Do I have a chance to do these operations on the button by adding a form application?
you can make a separate MFC application which uses c++ only and windows classes, then you can integrate all classes from Console application to it ...
or -
change subsystem in visual studio to subsystem: windows from console, by going to project properties of course. then create a win32 windows with controls on it ...
ya got two ways ...

How to open and minimize external app to system tray in Qt

QProcess can be used to open external program, but it will always open an app to the front of all other windows.
Is there a way to open an external app and then minimize/hide this opened app to the system tray?
QString path = QString("external app path here").replace("/", "\\");
QProcess process;
process.start(path); //open the external app, but it will stay on top of other windows
if (process.isOpen()) {
//then minimize this app to system tray;
}
Is this(open and minimize external app to system tray) achievable using Qt methods?
If Qt has no way to minimize opened external app to system tray. Do I have to use Windows API? Any advice or example code would be appreciated.
This should not be specific to Qt. Perhaps Qt session management could be relevant.
It is a matter of window manager and of desktop environment. Both are provided by (very broadly speaking) your "operating system" and are not tied to one particular process using Qt.
The system tray belongs to the desktop environment. A particular process using Qt has no reason to minimize it. The minimization of the system tray is the business of the desktop environment (not of one particular Qt application). I see no reason why your application would do that (remember that your user could also run other applications, which are even more important to him than yours and which also interact with or require using the system tray).
Of course, Qt provides an API to interact with the window manager and the desktop environment.
PS. On Linux, the convention between a Qt application and the window manager or desktop environment are documented in EWMH and ICCCM. You need to find the equivalent for Windows. I never used Windows so I don't know them. On Linux, one can code a window manager using Qt.

Packaging the Qt 5.7 Virtual keyboard example on Surface Pro tablet

I have run the Qt Virtual Keyboard example successfully with Qt 5.7 in Qt Creator on Windows 10 desktop, but if I try to run the same exe on Windows Surface Pro (running on Windows 10) by including all necessary dlls and plugins, I am just getting the QML lineedits, but the keyboard is not popping up and the application just hangs. The exe isn't telling what else it requires to make it run.
The package I created is here:

How to run an EXE application from C++ on windows CE

How can one write a C++ dll function (for windows CE) to call an exe application
e.g the exe path is \DOC\EXE\WINCE_EXE
Thanks.
did you try CreateProcess, same as on desktop windows?

Application launch from c command in window OS

I want to make an console application of c which can run other applications (exe files). Kindly guide me how can I make it possible so that from my c code i can run other executable files in window OS.
You can use the CreateProcess Windows API function.