Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
395 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...