c++ - OLE: Shared IStorage for multiple OLE objects? -


i implementing ioleobject interface embed visualized data of our software other software powerpoint. our software creates graphical evaluations of measured data (diagrams, etc.). goal is, end-user can make double click on embedded ole object edit in our software. data stored using given istorage interface in ipersiststorage::save/load. measured data must embedded, not linked.

my current solution works fine, problem is, embedded data saved once per ole object. in example have got 10 mb of measured data , end-user embeds fifty different diagrams of measured data powerpoint, measured data embedded fifty times in powerpoint file (50 * 10 mb = 500 mb, although 10 mb per powerpoint file enough).

my question if there exists shared istorage interface entire container(?) or similiar?

the given istorage interfaces in ipersiststorage::load/save depends on specific, embedded ole object. great if tell host application "powerpoint, fifty ole objects share istorage there. please save once in pptx file."

no, that's way ole embedding supposed work. each object gets own storage in container. if it's same object same data, why need embedded 50 times? if it's same object , want be on different pages in presentation, why not embed first instance , make remaining instances links? save storage. of course, if delete first embedded instance, links turn ....


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -