Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MapiMail class
Message
 
 
À
06/07/2003 16:41:52
Eric De Bruin
Basic Software Design
Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00807284
Message ID:
00807289
Vues:
22
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform