Results 1 to 2 of 2

Thread: My xml function does not works in some operating systems

  1. #1
    Join Date
    Jul 2011
    Posts
    81
    Thanks
    8
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default My xml function does not works in some operating systems

    I have created a program to create an xml at the installed folder when the application starts.
    It works in windows xp without failure. When i try it in windows 7 ultimate it does not works. But it works in all other versions of windows7
    what is the reason?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: My xml function does not works in some operating systems

    The answer hasn't changed since the first time you asked.

    In general, you cannot write to the installation folder of a program (under "Program Files") on any flavour of Windows 7 without first butchering the permissions. You certainly should not rely on that working unless your application runs with Admin rights.

    If your application does not carry a manifest then directory virtualization will be used to give the program the appearance of working: the created files will go into another (per-user) location and only virtually exist in the restricted location. Other users will not see the virtualized files. See Scenario 2 here. For much more on this try here.

    QDesktopServices can help find suitable locations to store information. On Windows you can use the SHGetKnownFolderPath function to find locations not available through QDesktopServices.

Similar Threads

  1. Replies: 3
    Last Post: 6th July 2011, 06:59
  2. Replies: 1
    Last Post: 14th February 2010, 16:56
  3. Problem with operating of QTimer
    By sudheer168 in forum Newbie
    Replies: 3
    Last Post: 8th October 2008, 20:58
  4. QListWidget - inconsistency across operating systems?
    By scwizard in forum Qt Programming
    Replies: 20
    Last Post: 20th February 2007, 01:45
  5. How to know the operating system?
    By Dark_Tower in forum Newbie
    Replies: 4
    Last Post: 4th May 2006, 20:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.