Register/unregister a DLL server. Input: flag !=0: register ==0: unregister
Create a COM object. The passed interface should be a child of IUnknown and from core.sys.windows or have a ComGuid UDA, or be something else entirely and you get dynamic binding.
Mixin to a low-level COM implementation class
Mixin to a low-level COM implementation class
Code for COM interop on Windows. You can use it to consume COM objects (including several objects from .net assemblies) and to create COM servers with a natural D interface.
This code is not well tested, don't rely on it yet. But even in its incomplete state it might help in some cases. Strings and integers work pretty ok.
You can use it to interoperate with Word and Excel:
The extra parenthesis there are to work around D's broken @property attribute, you need one at the end before a = or call operator.
Or you can work with your own custom code:
Compile it into a library like normal, then regasm it to register the assembly... then the following D code will work:
I'll show a COM server example later. It is cool to call D objects from JScript and such.