Deployed application with/without command prompt, depending on input arguments

1 vue (au cours des 30 derniers jours)
Lucademicus
Lucademicus le 18 Déc 2019
Hello,
I am using R2019b to deploy an application.
Intented behavior
The application starts a GUI if it is called without input arguments, and it does something else if the program is started from a command prompt with input arguments.
In the case of the GUI, I want to suppress the Windows 'command prompt'. But in the other case, I'd like to see feedback in the command prompt.
Actual behavior
If I make the standalone application by calling mcc with the argument
-W main
A command prompt opens when the GUI is started. When I close this prompt, the GUI gets killed.
If I make the standalone application by calling with the argument
-W WinMain
No command prompt opens when the GUI is started, but also no feedback is given when the program is called with input argument from a command prompt.
Is it possible to achieve the intended behavior?

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by