Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a
Thread ID: 78978 Message ID: 78986 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Operating Systems
Date: Tuesday, October 11, 2005 9:46:02 PM         
   


>
> > Ilya,
> >
> > As far as I remember, versions of Windows such as Win95/98 and WinNT 4.0 require the INSTALLATION of the freely-redistributable SHFOLDER.DLL; it was downloadable from Microsoft. You cannot just copy dll, you need to register it too.
> >
> > But anyway it is not an option for you, as you noted.
> >
> > For what reason you use SHGetFolderPath and SHGetSpecialFolderPath ? What are folders for which you use those functions?
> >
> > Best Wishes,
> >
> > Yuri Rubinov

>
> Yeah, I did find the reference on SHFolder.DLL in MSDN Library, in "Special Folders and
> CSIDLs" section of the "Getting a Folder's ID" chapter. It says: "To use SHGetFolderPath with earlier versions of the Shell, you can include the redistributable DLL, Shfolder.dll."
>
> However, I found that DLLs do not have always to be registered as long as they can be found at the currently default path (which I set to the EXE's starting dir first thing in my programs) or in the locations listed in the Path system's Environment Variable. So, I can "just copy DLL", and it works 99% of the times (if compatible with the target OS).
>
> Answering your second question - I need a folder on any machine running any WinOS, from ver. 4.xx to 5.xx that is always 100% Read-Write for the current user, regardless of the user type (except Guest, of course). My program uses this folder to save some files for the current user for the future use (in this session with my program, as well as in any consequtive sessions), i.e. notes table, bookmarks table, etc. That directory must be 100% accessible, and files in it must be 100% modifiable for any current user. In WinNT 5.xx it's only Docs&Settings\UserProfile\My Docs folder. In Win4.9x it can be whatever. In WinNT4 - it can be the same UserProfile\My Docs or some other folder, depending... This is why I need SHGetSpecialFolderPath.
>
> Similar story with SHGetFolderPath: I use it to find path to the system Temp dir - again, per user. (GETENV("TMP") returns abbreviated subdir names terminated by "~", and it causes failures sometimes. I want full dir names.)
>
> Have I answered your questions?
>
> Regards,
>
> Ilya


Then why not to use the only TEMP directory for all what you need?
At least one of the lines below should work:

?SYS(2023)
?GETENV("TEMP")
?GETENV("TMP")



Best Wishes,

Yuri Rubinov

ENTIRE THREAD

Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 6:50:03 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/11/2005 8:35:00 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 9:27:25 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/11/2005 9:46:02 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 10:33:30 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 2:16:46 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 5:10:18 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 9:23:13 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 9:33:01 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 9:54:45 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:36:47 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/13/2005 12:38:50 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:52:43 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/12/2005 2:41:31 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 6:22:36 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/12/2005 8:38:25 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:39:13 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 5:22:15 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/13/2005 5:56:08 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 6:12:37 PM