4 Replies - 1023 Views - Last Post: 20 May 2013 - 06:58 PM Rate Topic: -----

#1 Gamma Ray  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 144
  • Joined: 24-September 10

Windows - Dragging file over to program

Posted 20 May 2013 - 04:32 AM

Hello!

I'm making a program where I want the user to be able to drag a file from Windows Explorer to my program. The program will then register the filename and load it.

I have been Googling for about 2 hours now, downloading examples and looking at articles.
All the examples had one or more classes that I couldn't find. Includes that I couldn't even find any information on and so on...
This might be because the only examples I could find were from late 1990s to early 2000s though.
Not to mention the code in most of them was almost incomprehensible...

So I've decided to ask here; do you know of a good example that handles dragging files from explorer to C++ programs?

Thanks in advance.

This post has been edited by Gamma Ray: 20 May 2013 - 04:33 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Windows - Dragging file over to program

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,467
  • Joined: 05-May 12

Re: Windows - Dragging file over to program

Posted 20 May 2013 - 05:45 AM

Yes, there are great example in Kraig Brockschmidt's Inside OLE 2 with lots of detailed explanation of what is happening. (Better than Don Box's book in my opinion despite Kraig's book being a bit more dated.)

If you don't want to get the book (or books), you can start here: http://www.catch22.n...op-introduction and pick up the keywords and phrases from the tutorial to do more research.
Was This Post Helpful? 2
  • +
  • -

#3 Gamma Ray  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 144
  • Joined: 24-September 10

Re: Windows - Dragging file over to program

Posted 20 May 2013 - 05:58 AM

Thanks for the catch22 link, Skydiver.
Was This Post Helpful? 0
  • +
  • -

#4 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 841
  • View blog
  • Posts: 2,472
  • Joined: 20-March 10

Re: Windows - Dragging file over to program

Posted 20 May 2013 - 08:18 AM

You can look at my Turtorial on Drag and Drop here

http://www.dreaminco...iles-demo-in-c/

It deals with text files but can be easily modified for executables.

Regards

Snoopy.
Was This Post Helpful? 3
  • +
  • -

#5 Gamma Ray  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 144
  • Joined: 24-September 10

Re: Windows - Dragging file over to program

Posted 20 May 2013 - 06:58 PM

Thank you, snoopy11.

I'll take a look at it.
I just don't know that much Win32, so will take some time understanding what everything does.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1