0

How would you open a file with c++ , for example when you run the program it opens a game of minesweeper. Also how would you save a copy of the minesweeper to the desktop?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Duoas
0

In the most platform-neutral way, use system().

For Windows, you can also use CreateProcess() or the ExecProgram() macro.

To save things to the desktop, you first have to know where it is. Use
SHGetSpecialFolderlocation

Hope this helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.