COM automation...
COMate is a small source-code utility (coded in Purebasic) allowing for the easy creation of automation controllers in that it offers a Visual Basic type mechanism for connecting to COM components. COMate also allows applications to host ActiveX controls and receive events sent by such controls.
COMate is based upon a translation of the DispHelper source code (written in c) but upgraded to offer a true Visual Basic experience in the way that we invoke COM object methods and get/set properties etc.
Main features:
- An oop interface.
- Method / property parameters are encoded in a very natural way within command strings.This includes use of a BYREF modifier for passing parameters by reference.
- Method/property calls can embed a chain of property-gets, each of which return a subobject etc.
- Command strings can include escape characters in the form $xxxx where xxxx represents a 4 hexadecimal digit character code.
- Enumeration of collections.
- ActiveX support. Including the receiving of events etc.
- Facility for setting 'design-time' read-only properties at run-time (ActiveX controls).
- Automatic freeing of all strings.
- Completely threadsafe.
- Full threaded error reporting.
The download includes all of the COMate source-code, a fully detailed .chm user manual and a whole bunch of
demo programs.
Enjoy!