Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
387 views
in Technique[技术] by (71.8m points)

pywin32 - Writing OLE compound files with python 3

I have two bytestream, these data should be dump in a compound OLE file both together in a container. I just checked that there are some third party libraries to do it, but I would like to do it with pywin32, I have this library in my project and I would not like to add more third party libraries which maybe I could not mantain in the future. If for some reason I can not use Com objects from Windows, which is the best option or the best library?

Thanks.

question from:https://stackoverflow.com/questions/65864425/writing-ole-compound-files-with-python-3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

dI found several libraries, useless right now to create an ole object from scratch then add some streams in to the container. The only way to do it is through pywin32 then use a Com object. The problem is as always with pywin32, no examples, no a good documentation. Nice.

Does anyone would know how to do it? It would help just to know how to open a com object for this purpose.

Thanks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...