View Single Post
 
Old 03-13-2004, 07:45 PM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,774
Cool Create Shortcuts with the IShellLinkA Interface

This example contains a class wrapper which will allow you to easily create shortcuts. I originally attempted to use my IShellLink type library from vb6, but due to marshalling problems with LPSTRs, it was not useful. In creating this example I came across a bug in VB (by design they say) which will not allow it to create COM CoClasses as C# can, by using the ComImport Attribute. Make sure to complain to MS about this.

Enjoy!
Attached Files
File Type: zip Shortcut.zip (10.3 KB, 303 views)
Reply With Quote