Really, you should compile a 64-bit version for your 64-bit host systems and
a 32-bit version for 32-bit hosts. 

On a 64-bit system, registry and program files etc are virtualized so that a
32-bit app "sees" what appears to be a 32-bit Windows. Refer to (amongst
many others) Raymond Chen ("Old New Thing" blog). 

However (and it has been said many times before) you shouldn't be storing
your app's working or data files in that location. 

  _____  

Ian Thomas
Victoria Park, Western Australia

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Anthony
Sent: Friday, 5 February 2010 8:32 AM
To: 'ausDotNet'
Subject:
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)Issue?

 

Iam using some
code....Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
which apears to return the same path when i use it on an application
deployed by Clickonce or run through VS 2008

 

But i have noticed that it stores any files physically on the
computer(Windows 7) under
c:\Users\anthony\AppData\Local\VirtualStore\Program Files (x86)\test

 

When i resolve the address in code the address is c:\Program Files
(x86)\test   I think this has been spoken about but what should i use to be
able to store file on any computer in a consistent way?

 

Is <http://www.intellixperience.com/signup.aspx>  your website being
IntelliXperienced?
regards
Anthony (*12QWERNB*)

Is your website being IntelliXperienced?

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2664 - Release Date: 02/05/10
03:35:00


Reply via email to