CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    wierd problem... VISTA - virtualization problem...

    I am totally perplexed with this....

    I am tryin to save a file (XML), using a certain save method from MSXML2::IXMLDOMDocument2.

    It has worked well so far.(XP, Win2000, server,.....Vista too with Virtualization on)
    Now in vista, with virtualization disabled, I am unable to save the same absolutely anywhere... except C:\Users\<User_Name>. This is the only location I am able to save the file.
    I can't save the same under C drive... nor in another partion - D drive.... WOW....

    I need to save the same under <%ALLUSERSPROFILE%> (Program Data in case of Vista).
    (The version of msxml I am using is msxml2.dll)

    any help would be great


    EDIT:
    Forgot to mention earlier.... the error code returned is... E_ACCESSDENIED (even while trying to create a new file).
    Just a thought... Do I need to use a different version of msxml for vista??
    Last edited by Vedam Shashank; September 26th, 2006 at 12:28 AM.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: wierd problem... VISTA - virtualization problem...

    Are you able to create a file in the same location using the shell ( explorer ) ? If that is the case, it would narrow down to a MSXML thing. Else I would rule that out.

  3. #3
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: wierd problem... VISTA - virtualization problem...

    Run command prompt and navigate to the parent folder of target folder you are interested in saving to and type
    cacls foldername
    What does it show ?

  4. #4
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Re: wierd problem... VISTA - virtualization problem...

    Quote Originally Posted by kirants
    Run command prompt and navigate to the parent folder of target folder you are interested in saving to and type
    cacls foldername
    What does it show ?
    I was unable to post the same here - some formatting problem.... I have attached it as a text file.

    It mentions... that Cacls is now deprecated & to use Icacls. So i have attached the output of both. I guess ICalcs should do. :-)

    May I know what is Calcs/Icalcs used for ? What information it obtains?
    Attached Files Attached Files
    Last edited by Vedam Shashank; September 26th, 2006 at 01:49 AM.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

  5. #5
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Re: wierd problem... VISTA - virtualization problem...

    Quote Originally Posted by kirants
    Are you able to create a file in the same location using the shell ( explorer ) ? If that is the case, it would narrow down to a MSXML thing. Else I would rule that out.
    Yes. From windows explorer i am able to create files & save.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured