Skip to main content
GameDev.net gamedev.net
🔒 Locked

How to make my application OLE linkable/embeddable like Microsoft Equation Editor?

Started by nullsquared Sep 16, 2010 at 5:41 PM 2 replies 1.3k views
Original Post
nullsquared
nullsquared
Hey, can anyone point me in the right direction of how to make my application OLE linkable and/or embeddable?

My application produces images based on some textual input. Ideally, I want to be able to import an OLE object of one of these images in Microsoft Word (or any other program that can import OLE objects). Then, when I double click on the object, my application would open up for editing; when my application closes, any changes made would be shown in Microsoft Word inside the OLE object.

I found many resources talking about how to load an OLE object in your own application, but none about how to make your application save or create an OLE object that can be loaded into Microsoft Word and such.

A good example of what I want to do is Microsoft Equation Editor; you import the object, write an an expression, and it shows up in Microsoft Word. When you double click the object, you can edit the expression again, etc.
Antheus
Antheus
Application needs to be written as OLE server.

These servers are then embedded inside OLE containers.

Quote:
but none about how to make your application save or create an OLE object that can be loaded into Microsoft Word and such.
Because all documents related to OLE programming were classified as inhumane torture under Geneva convention and destroyed. Special hazmat teams still collect remainders, but it is said most of them go insane sooner or later just for being in presence of such evilry.
nullsquared
nullsquared
Thanks for the info. Is Microsoft Word the "OLE Container", or is that something I must provide?

(RE comment about OLE being terrible: unfortunately it's the only feasible integration option between my application and a certain other software)
Antheus
Antheus
Quote:
Original post by nullsquared
Is Microsoft Word the "OLE Container", or is that something I must provide?


Servers get embedded into containers.

Office applications are probably both. Though I'm not sure if recent versions still use same mechanism or something more modern.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.