Re: Vista and reading/writing files
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 30 Jan 2007 13:12:47 -0800
On Jan 30, 2:48 pm, "James Parsly" <japar...@xxxxxxxxxxxxxx> wrote:
Under Vista, there's some pressure to make you conform to certain
'standard' locations for executables, common files, and user files.
In VB6 I can get the appropriate folder names using an API call to
SHGetFolderPath. Not sure how I'd do this in Fortran, since it
requires a windows handle as one of the arguments.
What's a good way to handle getting these directory names?
Most commercial Windows-based compilers have Windows API interfaces
(at least partial) supplied as modules. Look for the API you need/
want the first. If that is unsuccessful, look at similar APIs
interface descriptions in the associated Fortran module source file
and write the interface manually.
As other regulars here note, this is inherently platform-dependent and
non-standard, so the key to any future portability is segregation and
modularization of the code to isolate such system-dependencies as well
as possible, then document where they are.
.
- References:
- Vista and reading/writing files
- From: James Parsly
- Vista and reading/writing files
- Prev by Date: Vista and reading/writing files
- Next by Date: Re: F77 -> F95 Intro Presentation Material
- Previous by thread: Vista and reading/writing files
- Next by thread: Re: Vista and reading/writing files
- Index(es):
Relevant Pages
|