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. Problem with Vista...

Problem with Vista...

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • S Offline
    S Offline
    SnaKeBeD
    wrote on last edited by
    #1

    hi all, i have a problem working with a program in vista, this program made by myself is creating a file in the application path and writing some data in to the file, but when i try to run it in the vista its showing a exceptional error. I think its not allowing my application to write a file in to the installed path. Can Anybody help me to sort out my problem? :(

    ||SnAkeBed||

    M R M 3 Replies Last reply
    0
    • S SnaKeBeD

      hi all, i have a problem working with a program in vista, this program made by myself is creating a file in the application path and writing some data in to the file, but when i try to run it in the vista its showing a exceptional error. I think its not allowing my application to write a file in to the installed path. Can Anybody help me to sort out my problem? :(

      ||SnAkeBed||

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      Try this: Right-click at the executable file, and choose [Run as Administrator] ...

      Maxwell Chen

      S 1 Reply Last reply
      0
      • S SnaKeBeD

        hi all, i have a problem working with a program in vista, this program made by myself is creating a file in the application path and writing some data in to the file, but when i try to run it in the vista its showing a exceptional error. I think its not allowing my application to write a file in to the installed path. Can Anybody help me to sort out my problem? :(

        ||SnAkeBed||

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        SnaKeBeD wrote:

        showing a exceptional error

        I'm amazed!

        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

        M 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          SnaKeBeD wrote:

          showing a exceptional error

          I'm amazed!

          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

          M Offline
          M Offline
          Maxwell Chen
          wrote on last edited by
          #4

          It's [C0000005] access violation. :rolleyes:

          Maxwell Chen

          1 Reply Last reply
          0
          • M Maxwell Chen

            Try this: Right-click at the executable file, and choose [Run as Administrator] ...

            Maxwell Chen

            S Offline
            S Offline
            SnaKeBeD
            wrote on last edited by
            #5

            hi , it worked................... thanks a lot ................................

            ||SnAkeBed||

            1 Reply Last reply
            0
            • S SnaKeBeD

              hi all, i have a problem working with a program in vista, this program made by myself is creating a file in the application path and writing some data in to the file, but when i try to run it in the vista its showing a exceptional error. I think its not allowing my application to write a file in to the installed path. Can Anybody help me to sort out my problem? :(

              ||SnAkeBed||

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              SnaKeBeD wrote:

              this program made by myself is creating a file in the application path

              You do know this is bad practice, right? If you intend your app to be used by standard users, they will have to enter a password every time. There is proper places to create app data files, both common and per-user. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              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