Accessing COM Objects

John via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 15 12:24:28 PDT 2016


On Wednesday, 15 June 2016 at 18:35:42 UTC, Joerg Joergonson 
wrote:
> On Wednesday, 15 June 2016 at 06:09:33 UTC, thedeemon wrote:
>> On Monday, 13 June 2016 at 17:38:41 UTC, Incognito wrote:
>>
>>> [...]
>>
>> There are ready tools idl2d:
>> https://github.com/dlang/visuald/tree/master/c2d
>>
>> [...]
>
> I can't seem to get ComPtr to work.
>
>
> auto ps = ComPtr!_Application(CLSID_PS).require;
>
> Where CLSID_PS is the Guid from the registry that seems to work 
> with CoCreate. _Application was generated from tbl2d.
>
>
> See my other post for a more(not much) complete description of 
> the issues files.

Ensure you are calling CoInitialize before anything else.


More information about the Digitalmars-d-learn mailing list