   int main(int argc, char *argv[]) and explorer?
  int main(int argc, char *argv[]) allows you to get arguments passed on the command line, but this apparently does not work for dragging and dropping icons onto the exe icon. What I am trying to do is allow the user to drag and drop a bunch of files onto my exe icon, and it builds a makefile for the project. Anyone know how to get the items dropped onto the icon? Thanks...Trashcan 
  You need to parse the command line in order to take advantage of them... ;quote:Original post by Ademan555  You need to parse the command line in order to take advantage of them...   Is that the default behaviour for Explorer when you drop something on a program icon? I am not a Windows programmer but I can imagine that you would have to use some API to get that functionality.;  I think some API IS needed, because when you drop the items on the icon it opens, but argv is empty (except for [0]...)Does anyone know exactly HOW to do this? ;  You must be doing something wrong, because when I drop files on my programs, argv is a list of them (with 0 being the filename of the program as usual) #include <stdio.h>#include <stdlib.h>int main(int argc, char *argv[]){for(int ii = 0; ii < argc; ++ii)printf("%s\n", argv[ii]);system("PAUSE > NUL");return 0;}Lists all file dropped onto it.   [edited by - extrarius on February 15, 2004 6:39:55 PM];  Maybe this will help: Shell data objects, clipboard and drag-dropTake a look at the additional info links at the bottom of that page.  