OLE DB Provider

Is there any sample code,showing how to implement IRowset interface which complies with OLE/COM interface?I searced all te WEB but could'nt find any sample code but "SampleProv" from ESRI,which doesn't work properly.