It looks like you can find the information you need in Win32::FileOp to do the pack correctly, but it looks like the module hasn't been updated yet to include Win 2000 support. If you're calling the GetSaveFileName in Win 2000, the OPENFILENAME has three additional items you need to pack. They are:
#if (_WIN32_WINNT >= 0x0500)
void * pvReserved;
DWORD dwReserved;
DWORD FlagsEx;
#endif // (_WIN32_WINNT >= 0x0500)
For more information, see the
MSDN page on OPENFILENAMEUpdate: I guess it would be nice if I explained the Win 2000 options, instead of making everyone go to the MSDN site.
Both pvReserved and dwReserved are reserved and should be ignored in the return. FlagsEx can be set to the value OFN_EX_NOPLACESBAR, which means don't display the places bar (whatever that means, I'm still on NT4).
GuildensternNegaterd character class uber alles!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.