vendredi 22 juillet 2016

How can I deploy an exe file within my C++ code?

I'm making a small prank in C++ that moves the cursor in random locations across the screen in a while loop. I want that loop to be in its own executable file. So I have a console application, and when it runs it asks for the screen resolution, then executes its logic. But if you just hit Ctrl+C it quits the program, so I want it to where when I launch the program it will ask the resolution, then deploy the prank executable in the current directory and run it, so that when I close my application, the prank is still running.

Aucun commentaire:

Enregistrer un commentaire