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. User permission problem with MFC

User permission problem with MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++javahelp
6 Posts 4 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.
  • B Offline
    B Offline
    bhanu_8509
    wrote on last edited by
    #1

    Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu

    CPalliniC K R 3 Replies Last reply
    0
    • B bhanu_8509

      Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      bhanu_8509 wrote:

      The same application developed in JAVA seems to be working fine in both Admin user and limited user.

      So, why don't you use that one (just kidding...)? :-D This may be useful [^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • B bhanu_8509

        Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        check that the work of the Java-App isnt virtualized. It isnt the right way to create some directories in the prog dir, if it isnt a installation. Better use the user-dirs

        Press F1 for help or google it. Greetings from Germany

        B 1 Reply Last reply
        0
        • K KarstenK

          check that the work of the Java-App isnt virtualized. It isnt the right way to create some directories in the prog dir, if it isnt a installation. Better use the user-dirs

          Press F1 for help or google it. Greetings from Germany

          B Offline
          B Offline
          bhanu_8509
          wrote on last edited by
          #4

          If I use the All Users/Application Data/ directory then the files created by Administrator cannot be overwrite by the Limited account user. Please help me.

          K 1 Reply Last reply
          0
          • B bhanu_8509

            If I use the All Users/Application Data/ directory then the files created by Administrator cannot be overwrite by the Limited account user. Please help me.

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            user data belongs in the user directorys. If it are global settings than the admin can also write them in the registry. Is is an architectual issue :~

            Press F1 for help or google it. Greetings from Germany

            1 Reply Last reply
            0
            • B bhanu_8509

              Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu

              R Offline
              R Offline
              Rolf Kristensen
              wrote on last edited by
              #6

              A dirty hack could be to create an installer for your application, that grants access to everyone to the application folder. One have to be an administrator to install the application, but then any user can use it.

              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