COM and OpenGL

This is a discussion on COM and OpenGL within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I'm writing my diploma's work. My program will be used for drawing stereometric objects, so I'm using OpenGL. I ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    87

    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?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    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?

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    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.

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    Thank you.

    I'll read it.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21