io - Is it possible to override this virtual method in C++? -
in program i'm trying read data serial port data being read form port not in format (comes out in large chunks). want override how readbytes works.
bstr buffer_bstr; hr = pcom->readbytes( &buffer_bstr );
so readbytes found in library header called acomport.h made company activexperts. when go declaration of readbytes this
virtual /* [helpstring][id] */ hresult stdmethodcalltype readbytes( /* [retval][out] */ bstr *__midl__icomport0001) = 0;
what saying? looking implementation of readbytes change things around see this. mean?
that's not "real" c++ function, it's member function on com object presented c++ wrapper. unless implement object implements same com interface, can't override or overload function.
Comments
Post a Comment