500分重赏! Delphi 5下如何安装及使用MIME?

bbg 2000-02-24 01:58:00
...全文
154 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
929 2000-02-24
  • 打赏
  • 举报
回复
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进行查找可看到。
ran 2000-02-24
  • 打赏
  • 举报
回复
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.

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧