I'm working with a Delphi codebase where I need to extract the file path of a linked file in an OLE container.
The container is saved on disk, and is openable with the methods TOleContainer.LoadFromFile(containerPath)
and TOleContainer.DoVerb(ovShow)
, where Windows handles the rest and opens the linked file after showing a prompt to the user.
Now while that works as expected, I struggle to extract this file path without using these methods, as for example in a micro-service with no human interaction.
When you open the container saved on the disk with a text editor, most of the content is binary but you still can clearly read the file path in plaintext.
Is there a way to access the OLE linked file path without having to extract the path from the raw text of the container file?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744155739a4560850.html
评论列表(0条)