Hi

I wanted to make application that is able to draw on video sent from usb webcam.
To do that I tweaked code from directx sdk namely dxtext (example was done in c# so I converted it to c++). Problem is that my class to be able to perform operations on camera ready bitmap on each new frame need to inherit from ISampleGrabber for ISampleGrabberCB callback. But to perform any changes to protected memory it would have to inherit from IDisposable too, something that is not possible in C++ or I don't know how, because ISampleGrabber is unmanaged class and C++ forbids inheritance from both managed and unmanaged classes/interfaces. Changing all classes on ISampleGrabber side to managed is out of question.

Is there a way I can change bitmap that is in protected memory from unmanaged code?