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. CopyFileEx notification??

CopyFileEx notification??

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
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.
  • P Offline
    P Offline
    Paul Farry
    wrote on last edited by
    #1

    When I used copyfileex, I'm marshalling an interface for use in the callback. What I want to make sure is that if the user cancels the copy, that I get a notification that (final step e.g.) the Copy has been cancelled coming into the CopyProgressRoutine, so that I can release the necessary interfaces. Am I missing something, or do I not have to marshall the interface for use in the CopyFileEx scenario?

    B 1 Reply Last reply
    0
    • P Paul Farry

      When I used copyfileex, I'm marshalling an interface for use in the callback. What I want to make sure is that if the user cancels the copy, that I get a notification that (final step e.g.) the Copy has been cancelled coming into the CopyProgressRoutine, so that I can release the necessary interfaces. Am I missing something, or do I not have to marshall the interface for use in the CopyFileEx scenario?

      B Offline
      B Offline
      Blake Coverett
      wrote on last edited by
      #2

      CopyFileEx is not a COM method, it's just a plain stdcall API function. Same thing with it's callback, there's no interface there at all, just a function pointer to a stdcall function. Nothing to marshal. -Blake

      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