Search found 8 matches

by stebi
Thu Apr 05, 2012 2:18 pm
Forum: madShell
Topic: How to get a IShellObj for "Libraries \ Pictures"?
Replies: 6
Views: 26130

Re: How to get a IShellObj for "Libraries \ Pictures"?

"delayed" came with Delphi 2010.
by stebi
Thu Apr 05, 2012 1:01 pm
Forum: madShell
Topic: How to get a IShellObj for "Libraries \ Pictures"?
Replies: 6
Views: 26130

Re: How to get a IShellObj for "Libraries \ Pictures"?

In XE2 (Winapi.ShlObj) SHGetKnownFolderIDList is declared as "delayed", so it should be no problem on older OS.
by stebi
Thu Apr 05, 2012 10:31 am
Forum: madShell
Topic: madShell.ShellObj(Path) can't resolve "Libraries \ Pictures"
Replies: 5
Views: 17437

Re: madShell.ShellObj(Path) can't resolve "Libraries \ Pictu

I found the bug (may I add, the code of this function is horrible). The problem is after all the splitting of the path. It fails on the last part. The Path consts of two parts, but it doesn't stop after that and fails in the third iteration and exists the function. Before (function PathToIDList(path...
by stebi
Thu Apr 05, 2012 9:50 am
Forum: madShell
Topic: How to get a IShellObj for "Libraries \ Pictures"?
Replies: 6
Views: 26130

Re: How to get a IShellObj for "Libraries \ Pictures"?

I found a solution thanks to this post (Delphi XE2): uses Winapi, Winapi.KnownFolders; var PIDL: PItemIDList; Assert(Windows7); SHGetKnownFolderIDList(FOLDERID_PicturesLibrary, 0, 0, PIDL); try ... finally ILFree(PIDL); end; Documentation can be found here: http://msdn.microsoft.com/en-us/library/bb...
by stebi
Wed Apr 04, 2012 1:42 pm
Forum: madShell
Topic: madShell.ShellObj(Path) can't resolve "Libraries \ Pictures"
Replies: 5
Views: 17437

Re: madShell.ShellObj(Path) can't resolve "Libraries \ Pictu

This hasn't anything to do with Developer Express (assuming it's a valid PIDL this component returns). If I shorten the path to the first part (only "Libraries") it works, but the combined path doesn't work. It's the function "PathToIDList" which doesn't work as expected. It seem...
by stebi
Wed Apr 04, 2012 1:02 pm
Forum: madShell
Topic: How to get a IShellObj for "Libraries \ Pictures"?
Replies: 6
Views: 26130

How to get a IShellObj for "Libraries \ Pictures"?

Hi, I can get the ShellObj for "My Pictures"-Folder with that call: madShell.ShellObj(sfMyPictures) Since Windows 7 introduced shell "libraries" and there is the default library called "pictures" I'd like to reference that. There is no predefined TSpecialFolder for that...
by stebi
Wed Apr 04, 2012 12:53 pm
Forum: madShell
Topic: madShell.ShellObj(Path) can't resolve "Libraries \ Pictures"
Replies: 5
Views: 17437

madShell.ShellObj(Path) can't resolve "Libraries \ Pictures"

Hi, I have a problem converting a path to IShellObj. The Path is '::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\::{A5A3563A-5755-4A6F-854E-AFA3230B199F}'. It points to "Libraries \ Pictures". This GUID-Representation is generated by IShellObj, but cannot be resolved from string back to an IShel...
by stebi
Mon Nov 12, 2007 5:26 pm
Forum: madExcept
Topic: Where is the crashing thread created
Replies: 1
Views: 3050

Where is the crashing thread created

Hi, I'm trying to find out where an exception occurs. It raises shutting down the application. I know it comes from a background thread. So the exception dialog only shows up shortly. With the help from this post http://forum.madshi.net/viewtopic.php?t=3754 I was able to freeze the main thread and r...