Create your own photo sorting application. To add originality and functionality to it, you can add a call to the graphical interface directly from the program itself, in which you work. In C ++, there are two functions for performing such tasks. Connect the windows.h and Shellapi.h libraries to be able to use the launch functions of the external applications of the operating system. Libraries are connected using the #include operator.
Use the ShellExecute () function if you need to pass parameters to the application being called. The function has the following parameters: hwnd for the window identifier, lpOperation sets the operation for the called application (for example, print or open), lpDirectory sets the default directory name, nShowCmd - the application launch mode and lpParameters for passing other parameters to the called application.
To simply run the specified program, use the WinExec () function. A string parameter is passed to the program code, which specifies the full path to the application, as well as the launch mode of the application.
As an example, you can use the following code snippet:
void main ()
WinExec ("c: \ windows \ system32 \ calc.exe", SW_SHOW);
As a result of this code execution, the standard Windows operating system calculator will open. You can describe various conditions under which the external applications of the operating system are invoked. Do not forget to include the necessary libraries for working with these functions.
Register standard applications that are likely to be installed on users. Keep this in mind if the program will be used not only by you. If you have problems with writing a program, look at the Internet for special video instructions.
Related videos

Tip 2: How to run the application in the window

Fullscreen mode is good when you want to immerse yourself in the world of computer games. But if in addition to the entertainment of your loved one you are doing other things, it makes sense to open the toy inwindow.
How to run an application in a window
Quite a lot of programs, including computer games, are minimized to windowed mode and back again with the help of hot keys Alt + Enter.
If this method does not work, then you can perform some actions with the program shortcut. Find it and right click on it. Select the "Shortcut" tab.In the field "Object" the path to the exe-file of the program is indicated. Attribute -window at the end of it. For example, D: GamesValveCounter Strike: Sourcehl.exe -window. Click “Apply” and OK in the lower right corner of the window for the changes to take effect. Now the program will run all the time in windowed mode, if you run it using this shortcut. The disadvantage of this method is that even if you remove the “-window” prefix from the above line, the program will still run in windowed mode. To avoid this, type “-full screen” instead of “-window”.
Also, many programs have a special custom setting to switch between windowed and fullscreen modes. In particular, computer games. For example, in Counter Strike 1.6 you need to go to the main menu, click on the “Settings” item, select the “Video” tab and put a tick next to the “Run towindow". And in Team Fortress 2, also click Settings> Video tab, and then select Windowed in the Display Mode drop-down menu. One way or another, if the transition mode to the window mode is provided in a computer game, then the functionality for this is, as a rule, in the video or graphics settings.
Oddly enough, to start the game in windowed mode may require more computer resources than to run in full screen.This may be due to insufficient program optimization by developers. Therefore it is worth switching back if the program starts to slow down.