Coclass MyCom2

{

[default] interface IMyCom2;

}

};


There isn't much to say here, basically you *MAY* use MSVC to write this file for you as described in Creating COM objects in ASM. However, do check that IDispatch is working correctly. The CoLib lib uses the type library here to perform the IDispatch functions, and a bad type lib means no IDispatch.

 

 

--------------------------------------------------------------------------------------------------------------------

MyCom.rgs Resource Script File

 

If you use MSVC to define your .idl file, you also get the MyCom2.rgs registrar file. The registrar file looks like so: