Displaying 3 results from an estimated 3 matches for "shgetfolderpath".
Did you mean:
shgetfolderpathw
2005 Feb 06
7
SHGetFolderPath and stuff
Hi all,
I was taking another look at SHGetFolderPath() and
related stuff today based on suggestions from Shanko
and Zach. I think this would be fairly simple.
My main question is, where do we put these values?
Under File, Dir, or Shell? Or somewhere else? I vote
Dir, since all the special CSIDL seem to be
directories.
Thus you would have someth...
2005 May 01
3
win32-dir 0.1.0 compile problems
...t I get from running ''ruby
extconf.rb'' is...
C:\unzipped\WIN32-~2.0\WIN32-~1.0>ruby extconf.rb
checking for main() in shlwapi.lib... yes
checking for main() in SHFolder.lib... no
checking for main() in shell32.lib... yes
checking for main() in comctl32.lib... yes
checking for SHGetFolderPath()... no
creating Makefile
I then ran a:
C:\WINNT\system32>dumpbin /exports shell32.dll | grep SH
(yes i have unix tools)
and found that I don''t have SHGetFolderPath. I have SHGetFolderPathA and
SHGetFolderPathW.
The actual compiles I got are listed below this email. I am running......
2005 May 04
0
New win32-dir
...the dang thing in pure Ruby using Win32API.
That will solve''s Zach''s problem and make it easier to add Timothy''s
code, which I plan to add (slightly modified) to the 0.2.0 release.
The code is below. One thing I have a question about is how to handle
the situation where SHGetFolderPath is not found. I just wrapped it in
a begin/rescue clause. Does that seem a reasonable approach?
Regards,
Dan
PS - There are a few extra constants to boot (I dug them out of the
header files).
require "Win32API"
module Win32
# SHGetFolderPath may not be defined
# If not, use...