COM - Delphi equivalent to VB's CreateObject
Posted on 1999-01-17
In VB you can create ActiveX objects like this:
Set MyObj = CreateObject("VBScript")
and then use the object as you would any other, with dot notation access to methods and properties.
How does one go about this in Delphi?
The purpose of the exercise to add VBScript to a Delphi application as a macro language.
ComObj.pas exports CreateComObject(aGUID:TGUID):IUnknown;
but I don't really know what I'm supposed to do with a pointer to an IUnknown interface.