View Single Post
 
Old 08-03-2004, 09:14 AM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,774
Default

I accidentally omitted marshalling for one of the IShellLinkA methods:

This line:
Sub GetWorkingDirectory(ByVal pszDir As StringBuilder, ByVal cch As Integer)

should actually be:
Sub GetWorkingDirectory(<Out(), MarshalAs(UnmanagedType.LPStr)> ByVal pszDir As StringBuilder, ByVal cch As Integer)

Thanks to forum user name: nighty for pointing that out.
__________________
Quis custodiet ipsos custodues.
Reply With Quote