when do I use it?can you give me some examples?
when do I use it?can you give me some examples?
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?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.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.