How to add and throw a binary inside a project?
-
Hello!
I'm not sure that is possible, but imagine that the main application calls a binary by QProcess sometimes.
In my project, I have a very small binary that must be run each 1 minute more or less. I would like to know if it is possibly embedded the binary inside the project using a qrc file to map that file and throw it using qrc address inside C++ code.Is it possible? A crazy thing?
Thanks!
-
@carpajr said in How to add and throw a binary inside a project?:
if it is possibly embedded the binary inside the project using a qrc file
Yes
throw it using qrc address inside C++ code.
No
You can embed your binary within your Qt application executable, then you save that binary into a temporary file and run that temporary file with QProcess on the desired interval with QTimer...
-
@Pablo-J.-Rogina said in How to add and throw a binary inside a project?:
you save that binary into a temporary file and run that temporary file
Would that trigger an antivirus/malware program?
-
Hi,
Install both executables in a know folder structure and call the second from the first one as you are already doing.