Hallo,
zur Erzeugung von ShortCuts im Startmenu oder auf dem Desktop möchte ich eine Klasse aus der Shell32.DLL nutzen. Ich habe eine Referenz zur DLL angelegt sowie den Namespace System.Runtime.InteropServices eingebunden.<br>
using System.Runtime.InteropServices;<br>
using Shell32;<br>
Shell32.ShellLinkObjectClass sc = new Shell32.ShellLinkObjectClass();<br>
Die Kompilierung läuft problemlos durch, allerdings wird bei Erzeugung der Objektinstanz immer eine COM-Exception ausgelöst, die besagt, dass das COM Objekt mit der CLSID {11219420-1768-11D1-95BE-00609797EA4F} entweder nicht gültig oder nicht registriert ist!?<br>Andere Klassen der selben DLL lassen sich problemlos instanziieren! <br>Für jeden Tip dankbar!<br>Uwe
zur Erzeugung von ShortCuts im Startmenu oder auf dem Desktop möchte ich eine Klasse aus der Shell32.DLL nutzen. Ich habe eine Referenz zur DLL angelegt sowie den Namespace System.Runtime.InteropServices eingebunden.<br>
using System.Runtime.InteropServices;<br>
using Shell32;<br>
Shell32.ShellLinkObjectClass sc = new Shell32.ShellLinkObjectClass();<br>
Die Kompilierung läuft problemlos durch, allerdings wird bei Erzeugung der Objektinstanz immer eine COM-Exception ausgelöst, die besagt, dass das COM Objekt mit der CLSID {11219420-1768-11D1-95BE-00609797EA4F} entweder nicht gültig oder nicht registriert ist!?<br>Andere Klassen der selben DLL lassen sich problemlos instanziieren! <br>Für jeden Tip dankbar!<br>Uwe
Comment