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. Project help

Project help

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 3 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.
  • S Offline
    S Offline
    sundar_mca
    wrote on last edited by
    #1

    I am doing project in vc.I have created a directory and allocated space for that directory,right now i wanted to lock or restrict the directory .How it can be done

    E 1 Reply Last reply
    0
    • S sundar_mca

      I am doing project in vc.I have created a directory and allocated space for that directory,right now i wanted to lock or restrict the directory .How it can be done

      E Offline
      E Offline
      EXTEIDE
      wrote on last edited by
      #2

      to lock the directory, use SetCurrentDirectory("c:\\folder"); and you can catch the state of file or dir by using FindFirstChangeNotification API series. Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com

      T S 2 Replies Last reply
      0
      • E EXTEIDE

        to lock the directory, use SetCurrentDirectory("c:\\folder"); and you can catch the state of file or dir by using FindFirstChangeNotification API series. Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        EXTEIDE wrote:

        and you can catch the state of file or dir by using FindFirstChangeNotification API series.

        Sorry to bug you Sir, How above statement relate to locking of Directory

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        1 Reply Last reply
        0
        • E EXTEIDE

          to lock the directory, use SetCurrentDirectory("c:\\folder"); and you can catch the state of file or dir by using FindFirstChangeNotification API series. Enjoy:rose: Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com

          S Offline
          S Offline
          sundar_mca
          wrote on last edited by
          #4

          I have tryied the code but i cant able to lock the directory.Give me the code for me how to lock ok. Please help me:((

          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