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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Release a file that is in use

Release a file that is in use

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncement
3 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.
  • Y Offline
    Y Offline
    Yevgeny Efter
    wrote on last edited by
    #1

    Hello! I want to write a program that releases files that are in use by something I don't know... Actually, I don't know where to start... If someone could help, I would be very thankful... Thanks in advance!

    _ 1 Reply Last reply
    0
    • Y Yevgeny Efter

      Hello! I want to write a program that releases files that are in use by something I don't know... Actually, I don't know where to start... If someone could help, I would be very thankful... Thanks in advance!

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      check for CTL_E_FILEALREADYOPEN. If the file is already open you would need to create a custom method for CUSTOM_CTL_SCODE and then you can release the file you intend to use. May be this can help you. Vision is Always important and so is your ATTITUDE. Wishes. Anshuman Dandekar

      Y 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        check for CTL_E_FILEALREADYOPEN. If the file is already open you would need to create a custom method for CUSTOM_CTL_SCODE and then you can release the file you intend to use. May be this can help you. Vision is Always important and so is your ATTITUDE. Wishes. Anshuman Dandekar

        Y Offline
        Y Offline
        Yevgeny Efter
        wrote on last edited by
        #3

        I didn't understand what you mean... Maybe you can better explain yourself? Thanks!

        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