delphi - Add File Summary tab data in runtime in NTFS in WinXP SP3 -
i have given tryng figure out reason of issue, here story , hope give tip...
as develop unique app ( http://code.google.com/p/sedev ) , therefore need polish it.
have add file summary ( useful info in opinion ) created files app, decided go ntfs compatible structure edit: code snippet in problem occurs:
if (fileexists(baselocation + leftstr(getsswdata, length(getsswdata) - 1) + '.vkp') = true) // add ntfs descriptive information output file try setfilesummaryinfo (pwidechar(baselocation + leftstr(getsswdata, length (getsswdata) - 1) + '.vkp')); // in testcase files full path is: c:\documents , settings\kludge\desktop\sedevrpg\sedev_rpg_o_710.vkp showmessagepos('patch created successfuly!' + #13#13 + 'please verify created data www.se-developers.net.', paramstr2x, paramstr3y); messagebeep(0); except // exception handler not fire on exception ... on exception begin if (warningchbx.checked = true) showmessagepos ('unable add description output file (' + baselocation + leftstr(getsswdata, length(getsswdata) - 1) + '.vkp )', paramstr2x, paramstr3y); messagebeep(0); end; end
final edit author: problem in setfilesummaryinfo(pwidechar('')) because after pwidechar conversion got character, not array of characters ( aka strings ) therefore not valid path anymore!
here main tutorial: http://www.delphipages.com/articles/setting_file_summary_information-9228.html
edit: better formatted tutorial here.
but, thing cannot damned filename param accept string ... have eolesyserror exception: "%1 cannot found" no matter what.
faulting operand is:
olecheck(stgopenstorageex(pwidechar(filename), stgm_share_exclusive or stgm_readwrite, stgfmt_any, 0, nil, nil, @iid_ipropertysetstorage, stg));
what not understand why wants %1 msdos file name input.
not launching app cmd therefore highly doubt needs additional param file path ...
i have tried possible string , pstring conversions, tried various param passing methods ... not work ...
any appreciated!
i can reproduce case specifying invalid filename. make sure include full path in filename.
Comments
Post a Comment