Vi2 wrote: Really? ' Client's code - VB6:
Dim o As Cx, o2 As Object Dim p1 As Long, p2 As Long ... Set o = New Cx Set o2 = o ... p1 = 0: p2 = 0 o.Encoder p1, p2 ' Call by vtable => early binding
Vi2 wrote:
STDMETHODIMP Cx::Encoder(/*[out]*/ long * Result, /*[out]*/ long * LastError)
{
*Result = 22;
*LastError = 222;
return S_OK;
}
I don't think a call to Encoder from a VB6 client will work with the above Encoder definition. At least when I attempted to call Encoder from a VB client using the above Encoder definition in a C++ COM object the program crashed. Is this normal behavior? Or, am I overlooking something? Thanks,