Posted By

browny on 11/11/10


Tagged

drop drag exe


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

thastyle


Drag and Drop onto Exe to execute


 / Published in: C++
 

  1. int main (int argc, const char *argv[]) {
  2.  
  3. if(argc < 2) {
  4.  
  5. cout << "Drag and drop files to the exe" << endl;
  6. cin.get();
  7. return 0;
  8.  
  9. } else {
  10.  
  11. string line;
  12. for(int i = 1; i < argc; i++) {
  13. cout << "> load image from: " << argv[i] << endl;
  14. }
  15.  
  16. }
  17.  
  18. }

Report this snippet  

You need to login to post a comment.