At 05:59 AM 8/1/2011, you wrote: > > What is a "search heuristic"?
>Well, you can read here about details: >http://msdn.microsoft.com/en-us/library/bb774952(v=vs.85).aspx Add that to your docs, this was helpful. I know it's not your practice to link up your functions with the ones you are wrapping, but it's helpful nonetheless. > > I tried using this rtBool = ResolveShortCut(true, true) on a link > > that couldn't be resolved, but it still returned True, no GUI was > > shown (even though it should have), and the Location parameter was > > changed to the Path it is SUPPOSED TO resolve to, but I knew it > > didn't exist. >Sounds like it got a path. The plugin returns true if Resolve was >successful and the plugin got the path. I know you are "absolving to the function you are wrapping", but can you go further and (if you'd like) explain WHY IShellLink::Resolve is getting a path, when on my system the path didn't exist? In my test, the shortcut is looking for this path: "D:\Argu DirectWave Files\Aodix\Aodix.exe" It definitely does not exist, d: is my DVD drive and nothing is in it. Plus, the file nor the folder exists on my drive (or even on the network), but that's neither here nor there because I set Search to false. I assume that isn't just heuristics but also the other searches the IShellLink fucntion does. When the function returns, it shows Target="D:\Argu DirectWave Files\Aodix\Aodix.exe", but again, that doesn't exist. If IShellLink:Resolve did find a path, it would show the right one. Why is your function returning True? Are you return the HRESULT of IShellLink:Resolve? Is so, perhaps that isn't correct. Maybe IShellLink::Resolve succeeds in parsing the shortcut and returns that, but IPersist:IsDirty is set, noting that the link is out of date. The docs aren't hugely clear IMHO. But your function shouldn't be return true if the path doesn't exist. I should also say I'm using MBS 7.5. I can check your new versions, but can you tell me first if you perhaps have fixed/altered it since? Garth Hjelte Sampler User _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
