Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Another Drag and Drop Question

Another Drag and Drop Question

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncareer
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GrumbleWeedster
    wrote on last edited by
    #1

    I'm in the process of writing a 'winzip' style tool. I want to enable drag and drop so the user can drag files from my tool and drop them into win explorer. The problem is I need to extract the files before the final 'drop' can take place. I'm using COleDataSource::DoDragDrop to do the job but as it's a single function that does the drag and the drop I cannot extract the files to a temp folder before the process finishes! Basiclly, I make a list of the files the user has dragged, create 0 byte files in a temp folder to fill in the DROPFILES struct but when I drop the function simply copies the 0 byte files before I can replace them with the extracted ones! Any help would be appriciated as I've been pulling my hair out and dont have much left! :wtf: Thanks :)

    B 1 Reply Last reply
    0
    • G GrumbleWeedster

      I'm in the process of writing a 'winzip' style tool. I want to enable drag and drop so the user can drag files from my tool and drop them into win explorer. The problem is I need to extract the files before the final 'drop' can take place. I'm using COleDataSource::DoDragDrop to do the job but as it's a single function that does the drag and the drop I cannot extract the files to a temp folder before the process finishes! Basiclly, I make a list of the files the user has dragged, create 0 byte files in a temp folder to fill in the DROPFILES struct but when I drop the function simply copies the 0 byte files before I can replace them with the extracted ones! Any help would be appriciated as I've been pulling my hair out and dont have much left! :wtf: Thanks :)

      B Offline
      B Offline
      Branislav
      wrote on last edited by
      #2

      http://www.catch22.net/tuts/dragdrop.asp[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups