Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MapiMail class
Message
 
 
To
06/07/2003 16:41:52
Eric De Bruin
Basic Software Design
Netherlands
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00807284
Message ID:
00807289
Views:
21
Hi Eric,

The MAPI class returns whatever is stored in the message property. You can try to get long file name using GetLongPathName Win API function.
DECLARE INTEGER GetLongPathName IN Kernel32 ;
  STRING lpszShortPath,  STRING @lpszLongPath, INTEGER @cchBuffer
lcBuffer = SPACE(256)
lnBuffLen = 256
? GetLongPathName(lcShortName, @lcBuffer, @lnBuffLen )
lcLongName  = LEFT(lcBuffer, AT(CHR(0), lcBuffer)-1)
>Hello,
>
>I am using the mapi mail class from Nigel B Coates and everything works fine.
>
>But now i am having a problem with retrieving the files from the attachment from an e-mail.
>
>When i use GetattachmentFile it returns something like c:\Documen~\local s~\.....\Agenda_0.txt While the filename of the attachment file is Agenda_0025.txt. It seems to be that it returns the old DOS path name instead of the windows name.
>
>Can someone please help me out on this.
>
>Thanks
>
>Eric de Bruin
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform