Skip to content

adamdruppe/com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is to help you make COM servers and clients. See the example for a hello world thing.

You need the Win32 API bindings. Fetch from here: https://github.com/AndrejMitrovic/DWinProgramming/tree/master/WindowsAPI/win32

You attach GUIDs to the interfaces and classes. There's a mixin for IDispatch, which makes your object usable from things like WSH (e.g. JScript) or other script languages.

You can compile the DLL and register in the registry or use manifests. Self registration functions are in, or you can use regsvr32 from the Windows command line. See the Microsoft docs for more info.

TODO: * make interfaces as easy to use as we reasonably can I think mission accomplished here!

* do more auto-wrapping of D stuff so you can write it in the
D style but still get a standard COM object. like exceptions and stuff.

* support IDispatch clients in cases where we don't have the static
interface.

* make sure it doesn't suck

* Remove the dependency on external Win32 bindings if that is reasonable

About

Helpers for working with Windows COM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published