-
COM and OpenGL
Hi.
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
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
-
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?
-
Yes, my avatar is stolen
I think what you are referring to is typically called "ole embedded objects", "ole embeddable objects", or "ole insertable objects".
Links:
http://msdn.microsoft.com/library/en...pound_0po3.asp
http://msdn.microsoft.com/library/en...ole_topics.asp
http://msdn.microsoft.com/library/en...rol_topics.asp
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.
-
Popular pages
Recent additions