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. enable uac by vc++

enable uac by vc++

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
5 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.
  • A Offline
    A Offline
    aangerma
    wrote on last edited by
    #1

    Hello, I writed a program that saves data on file, its runs on windows XP ,but whan I execute it on windows 7 its not open the file, I understood its because the uac property, if somebody know how can I disable the uac from my program , I would be vary thankfull for him. thanks

    _ 1 Reply Last reply
    0
    • A aangerma

      Hello, I writed a program that saves data on file, its runs on windows XP ,but whan I execute it on windows 7 its not open the file, I understood its because the uac property, if somebody know how can I disable the uac from my program , I would be vary thankfull for him. thanks

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

      I'm guessing you're creating the file in a folder that is not recommended like in C:\ or C:\Windows. You should change this location so that you will not need elevated privileges.

      «_Superman_»
      I love work. It gives me something to do between weekends.

      Microsoft MVP (Visual C++)

      Polymorphism in C

      A 1 Reply Last reply
      0
      • _ _Superman_

        I'm guessing you're creating the file in a folder that is not recommended like in C:\ or C:\Windows. You should change this location so that you will not need elevated privileges.

        «_Superman_»
        I love work. It gives me something to do between weekends.

        Microsoft MVP (Visual C++)

        Polymorphism in C

        A Offline
        A Offline
        aangerma
        wrote on last edited by
        #3

        can you give me example of recommended place to save the file? thank you for the halp.

        _ 1 Reply Last reply
        0
        • A aangerma

          can you give me example of recommended place to save the file? thank you for the halp.

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          You could use the MyDocuments folder. You can call SHGetSpecialFolderLocation with the CSIDL_MYDOCUMENTS parameter to get this location.

          «_Superman_»
          I love work. It gives me something to do between weekends.

          Microsoft MVP (Visual C++)

          Polymorphism in C

          A 1 Reply Last reply
          0
          • _ _Superman_

            You could use the MyDocuments folder. You can call SHGetSpecialFolderLocation with the CSIDL_MYDOCUMENTS parameter to get this location.

            «_Superman_»
            I love work. It gives me something to do between weekends.

            Microsoft MVP (Visual C++)

            Polymorphism in C

            A Offline
            A Offline
            aangerma
            wrote on last edited by
            #5

            Thank you!

            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