11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

138Part II: Becoming a Functional C++ ProgrammerNow try again, but drop several files at once. Select multiple file names byclicking several files while pressing the Ctrl key or by using the Shift key toselect a group. The name of each file appears as output.I dropped a few of the files that appear in my \Program Files\WinZipfolder onto PrintsArgs as an example:The arguments to C:\PrintArgs.exe1:C:\Program Files\WinZip\WZINST.HLP2:C:\Program Files\WinZip\WZCAB.DLL3:C:\Program Files\WinZip\WZCAB3.DLL4:C:\Program Files\WinZip\WZ32.DLL5:C:\Program Files\WinZip\WZQKPICK.EXE6:C:\Program Files\WinZip\WZQKSTRT.RTFThat’s itPress any key to continue . . .Notice that the name of each file appears as a single argument, even thoughthe file name may include spaces. Also note that Windows passes the fullpathname of the file.Using the drag-and-drop feature is an easy way to pass arguments to yourprogram at startup.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!