when do I use it?can you give me some examples?
Printable View
when do I use it?can you give me some examples?
click me :)
Ever wondered why Paint is opened and loads the bitmap when you double click on a *.BMP, or why Word opens and loads the document when you double click on a *.DOC?Quote:
Originally posted by Tonyukuk
when do I use it?can you give me some examples?
That's because Explorer opens paint/Word with an extra argument - the file name. If you use argc/argv arhuments in main, you can get those arguments and then do whatever you want with the file, most commonly load it.