 |
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: ssfPERSONAL in WinXP
It does retrieve MyDocuments path on WindowsXP professional...
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
14-10-2004 at 10:31 AM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: ssfPERSONAL in WinXP
YOu could use Environ function, it doesnt need any references like Shell32 does. Just this is necessary
msgbox environ("userprofile") & "\My Documents\"
Also, there is a SHGetSpecialFolderPath API (located in Shell32.dll) that can do the job....
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
14-10-2004 at 10:46 AM |
|
|
Serlio Level: Guest

|
Re: ssfPERSONAL in WinXP
quote: It does retrieve MyDocuments path on WindowsXP professional...
Then the problem may be harder than expected... I am working in spanish Windows, I don't know if it is the problem. Some users are telling me that the program fails exactly in that line, but I have no access to their computers, and they don't know nothing about programming... It works nicely in my W2000 and for all W98 users that have given me feedback...
The environ() solution can't be taken, because "My Documents" is the english name, but it is different in different languages, and of course I want the program to run in all windows languages.
The SHGetSpecialFolderPath approach has the same effect as the objShell one, in fact the constant to be used is the same (&H5). I suspect that the NameSpace method of Shell OCX is calling to SHGetSpecialFolderPath function of DLL.
I will keep on trying more tricky solutions, I'll return here if success.
Thanks a lot for your helping, Goran. I didn't know about environ() function, so I have learned something...
|
|
14-10-2004 at 07:18 PM |
|
|  |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: ssfPERSONAL in WinXP
What do you mean by "program fails exactly in that line"? And do they have VB installed on those machines so they are exeting code line by line? Do they get some error in that line or the return value is zero lenght string?
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
14-10-2004 at 11:02 PM |
|
|
|
|
 |
 |