Animations from DX/COM Dll

Hi,

following situation: I have a dll, which renders a scene with the help of DX9 (I have to add the ActiveX part in the dll in order to use it from a gadget). Now, I want to display this scene in a gadget. From the dll, I can return a pointer to a HBITMAP or GDI+ Image or the raw data pointer or whatever is needed. Can I use them directly or do I have to save the animation picture for picture into a file and refresh the gadget?

The animation speed should be around 25 fps, so this would be a refresh every 40ms. Is this technically possible?

Any help is appreciated.

Greetings

[635 byte] By [MarkoLudolph] at [2007-12-29]