Using C++ COM classes from a C++ dll

To answer my own question:

(I'm surprised you didn't see the post, BL ;)

Declare a function as 'external'; found this in marco Cantu's 'Mastering
Delphi5'.

    function WMCreateEditor(var IEditor: IWMMetadataEditor): HRESULT;
        stdcall; external 'wmvcore.dll';

The 'stdcall' may need to be 'safecall', but stdcall seems to work.  I could
declare the formal arg as IWMMetadataEditor...because I compiled a
wmsdk-supplied IDL file into a type library.

Now I need to munge the .pas file Delphi generated from the typelib.

--A