I want to create a VB COM object for creating dynamic graphs using OpenGL.

I found some sample code for OpenGL and VB but it is all for standard exe programs.

What I want to know is how do I create the OpenGL ‘Canvas’ off the screen? I have seen something about pBuffers, is this what I should be using? Also how can I export the image to JPEG?

Lastly I have seen a commercial component which does this and uses templates, the templates have the cuc extenstion, is this linked with OpenGL or is it custom?

Many Thanks