Recipe and best practice for accessing COM

Sean Cavanaugh WorksOnMyMachine at gmail.com
Wed Jul 25 00:02:01 PDT 2012


On 7/24/2012 2:01 PM, newToCOM wrote:
> I am trying to use COM to access Windows functionality and APIs.
> I have read the interface documentation and some documentation at
> MSDN. I have seen the included sample snippet for IHello and the
> slides "Modern COM programming in D", but it is still not clear
> exactly what to do and what the best practice is.
>
> So, my question is:
> I have downloaded Windows SDK and coffimplib. How do I proceed to
> access d2d1 and draw a rectangle?
>
> A stepwise description of the recommended procedure is highly
> appreciated!


I made D bindings for d3d11, directwrite, d2d1, and a few other directx 
APis.

They are located at:

http://www.dsource.org/projects/bindings/wiki/DirectX


The bindings haven't had extensive testing but the bits i've used seem 
to work correctly (mostly in d3d11)


The WindowsApi project is also necessary:

http://www.dsource.org/projects/bindings/wiki/WindowsApi



More information about the Digitalmars-d-learn mailing list