Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Extract Files from MIMEExtract files from a MIME message. Dim mime As New ChilkatMime Dim success As Long success = mime.UnlockComponent("Anything for 30-day trial.") If (success = 0) Then MsgBox "Failed to unlock component" Exit Sub End If ' Load a MIME document from a file: ' (.mht and .eml files contain MIME). success = mime.LoadMimeFile("mst.mht") If (success = 0) Then MsgBox mime.LastErrorText Exit Sub End If Dim sa As CkStringArray Set sa = mime.ExtractPartsToFiles("c:/temp/mimeParts") If (sa Is Nothing ) Then Text1.Text = Text1.Text & mime.LastErrorText & vbCrLf Exit Sub End If Dim i As Long Dim n As Long n = sa.Count ' Display the filepaths of the files created: For i = 0 To n - 1 Text1.Text = Text1.Text & sa.GetString(i) & vbCrLf Next |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.