The MIME (Multipurpose Internet Mail Extensions) ActiveX control allows users to set the necessary headers , add the desired attachments, and enter some body text. This object is useful for developing applications that send and receive mail messages having MIME and/or UUEncoded attachments. It can be used in conjunction with the SMTP, NNTP, and POP ActiveX controls. 

解决方案 »

  1.   

    MIME用于在 Internet 上对二进制数据进行发布和读取的标准。二进制数据的文件头包含有数据的 MIME 类型,用于通知客户端程序(例如 Web 浏览器和邮件软件包)需要按与直接文本不同的方式来处理数据。例如,包含 JPEG 图形的 Web 文档的文件头包含特定于 JPEG 文件格式的 MIME 类型。由此通知浏览器使用其 JPEG 查看程序来显示文件(如果有的话)。我想你的意思是自己在DELPHI中设立一种MIME类型,然后用DELPHI做程序处理它。那么需要在机器上注册这种MIME类型,并写程序处理它。
    在注册表中应该在:
    HKEY_CLASSES_ROOT\MIME\DataBase\Content Type\<mime type>. 
    HKEY_CLASSES_ROOT\MIME\DataBase\Content Type\<mime type> Extension = <mime type ext>.
    HKEY_CLASSES_ROOT\MIME\DataBase\Content Type\<mime type> CLSID = <player CLSID>.
    HKEY_CLASSES_ROOT\<mime type ext>. 
    HKEY_CLASSES_ROOT\<mime type ext> Content Type = <mime type>. 
    HKEY_CLASSES_ROOT\CLSID\<player clsid>. Class ID of player. This is automatically added if you are using MFC or the ActiveX Designer Framework to create your control. 
    HKEY_CLASSES_ROOT\CLSID\<player clsid>\Control.
    HKEY_CLASSES_ROOT\CLSID\<player clsid>\EnableFullPage\<mime type extension>. 
    在MSDN中有这样一个例子,介绍如何用ACTIVEX控件来实现MIME新类型的加入及播放。
    SAMPLE: ActiveX Object as the Default Player for a MIME Type
    Last reviewed: January 19, 1998
    Article ID: Q165072  
    用MIME进行查找可看到。