Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Win32 Strustured Storage via File - Properties - Summary

by John M. Dlugosz (Monsignor)
on Sep 07, 2001 at 20:48 UTC ( [id://111017]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Win32 Strustured Storage via File - Properties - Summary
in thread Win32 Strustured Storage via File - Properties - Summary

So, it was the literal chr(5) getting munged?

Hmm, that's odd. As written, it will convert the Unicode to ANSI using the current code page before calling the OS primitive. Ah, it probably passes the 5 unchanged (thus breaking symetry: a 5 is converted to the club character.)

Just to be more kosher, I'd use Wide system calls, or use a byte-oriented string.

How to read it: Load it in and use the OLE interface to un-persist it. I think you need to read it as one binary lump.

Here's a suggestion when you get past the proof stages: have a tied hash to get/set Summary Info or other supported property sets.

—John

  • Comment on Re: Re: Re: Win32 Strustured Storage via File - Properties - Summary

Replies are listed 'Best First'.
Re: Re: Re: Re: Win32 Strustured Storage via File - Properties - Summary
by Anonymous Monk on Nov 22, 2002 at 12:28 UTC
    For what it is worth... I found a COM object on the M$ support site call dsofile (Article # 224351) that will do what you are looking for. I was able to call it using the WIN32::OLE module. I have posted an example of doing this in the Snippets call SetFileProperty

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://111017]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.