you have to declare the interface that exposes that method (MidiOut...), and then include that interface in the library, within a coclass that exposes it
something like ...
[
object,
uuid(<your itf GUID in here>),
oleautomation,
nonextensible,
pointer_default(unique)
]
interface IyourMIDIinterface : IUnknown{
HRESULT MidiOutFromMaster([in] DWORD);
};
[
uuid(F3120704-CF1B-4B96-AF60-B8610FEC4783),
version(1.0),
]
library CbcrshimcontrolLib
{
importlib("stdole2.tlb");
[
uuid(<your control lib guid>)
]
coclass Cbcrshimcontrol
{
[default] interface IyourMIDIinterface;
};
However, this
should all be redundant - if you've got the source to the slave COM object, and it's a
real COM object (i.e. created via an MFC or ATL wizard) you should have a type library kicking around somewhere ...
How did you create the slave com object?