Create Windows "shortcut" (.lnk) with D?

岩倉 澪 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 6 12:13:39 PST 2016


On Sunday, 6 March 2016 at 11:00:35 UTC, John wrote:
> On Sunday, 6 March 2016 at 03:13:23 UTC, 岩倉 澪 wrote:
>>     IShellLinkA* shellLink;
>>     IPersistFile* linkFile;
>>
>> Any help would be highly appreciated as I'm new to Windows 
>> programming in D and have no idea what I'm doing wrong!
>
> In D, interfaces are references, so it should be:
>
>   IShellLinkA shellLink;
>   IPersistFile linkFile;

That's exactly what the problem was, thank you!!


More information about the Digitalmars-d-learn mailing list