Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Standardverzeichnisse: Ich brauche mal Eure Mitarbeit (https://www.delphipraxis.net/98947-standardverzeichnisse-ich-brauche-mal-eure-mitarbeit.html)

RavenIV 4. Sep 2007 16:06

Re: Standardverzeichnisse: Ich brauche mal Eure Mitarbeit
 
Liste der Anhänge anzeigen (Anzahl: 2)
Code:
Programmordner: C:\Programme
Dokumentenordner: C:\Dokumente und Einstellungen\All Users\Dokumente
Anwendungsdaten: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten
Windowsversion: Microsoft Windows XP (version 5.1)
Servicepack: SP2
Windowslanguage: Deutsch (Deutschland)
Eigentlich ist "Deutsch (Schweiz)" als Regionseinstellung eingestellt.

Siehe die beiden Screenshots.

emsländer 4. Sep 2007 16:13

Re: Standardverzeichnisse: Ich brauche mal Eure Mitarbeit
 
Zitat:

Zitat von Luckie
Zitat:

Zitat von emsländer
Jetzt fisch ich mir den Dokumentenordner aus der Registry:

Solltest du nicht tun: The long and sad story of the Shell Folders key

Zitat:

Once upon a time, in what seems like a galaxy far far away (a Windows 95 beta release known as "M3"), we documented a registry key called "Shell Folders" that programs could read to obtain the locations of various special folders like the Fonts folder or the My Documents folder.

The developers who received Windows 95 M3 Beta followed the documentation and used that key.

In the meantime, Windows 95 work continued, and we realized that a registry key was the wrong place to store this information. In part, because a lot of things (like the Control Panel) aren't disk directories so they wouldn't be expressible there. And in another part, because we had forgotten to take into account a feature of Windows NT called roaming user profiles, where your user profile can move around from place to place, so a hard-coded path in the registry is no good.

So we created the function SHGetSpecialFolderLocation, and updated the documentation to instruct developers to use this new function to obtain the locations of various special folders. The documentation on the old "Shell Folders" key was removed.

Schau Dir mal meinen Quellcode an! Das mache ich nur, wenn der "normale" Weg nicht klappt, mir also ein Leerstring geliefert wird. Oder hast ne andere Alternative? Betrifft ja nur 46.

Gruss

EL

Andreas L. 4. Sep 2007 16:21

Re: Standardverzeichnisse: Ich brauche mal Eure Mitarbeit
 
Zitat:

Programmordner: C:\Program Files
Dokumentenordner: C:\Users\Public\Documents
Anwendungsdaten: C:\ProgramData
Windowsversion: (version )
Servicepack:
Windowslanguage: Deutsch (Deutschland)
Win Vista 32bit Deutsch

BiBi 4. Sep 2007 17:07

Re: Standardverzeichnisse: Ich brauche mal Eure Mitarbeit
 
Zitat:

Programmordner: C:\Programme
Dokumentenordner: C:\Dokumente und Einstellungen\All Users\Dokumente
Anwendungsdaten: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten
Windowsversion: Microsoft Windows XP (version 5.1)
Servicepack: SP2
Windowslanguage: Deutsch (Deutschland)
Angaben stimmen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:02 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz