COM and OpenGL
I'm writing my diploma's work. My program will be used for drawing stereometric objects, so I'm using OpenGL. I had not worked much with COM before, but my question is can I make my document to be embeded in other documents, such as an equation object in word or excel table in word and to be drawn there althought the document it is an OpenGL window? Also where can I read somthing about that?
These two examples may be what you are looking for (particularly the second):
An OpenGL ActiveX Control Developed with MFC
3D Graph ActiveX Control
Thank you for the fast reply. But my question is not about an ActiveX control. It's about document. Examples of such a document is an equation object from the equation editor, which can be embeded in word, or excel document and can be edited "in place". When you double click on it, it will bring the menus of the apropriate prorgam and you can edit it.
So, my question is: Can I embed such a document althought it uses OpenGL to draw itself?
I think what you are referring to is typically called "ole embedded objects", "ole embeddable objects", or "ole insertable objects".
Google: ole embedded object -vb site:msdn.microsoft.com
ActiveX controls(aka "ole controls") are a lighter weight and more modern variant of "ole embeddable objects". They share most of the interfaces and implementation details. Don't ask me the exact differences!
The links posted by Ken show there is no problem using OpenGL with Ole/ActiveX.