Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - GB2312
Search - GB2312 - List
base64解码源代码,由C语言组成,不依赖于任何库,支持GB2312
Update : 2010-02-08 Size : 59294 Publisher : tcotco

unit UnitSendMail;

interface

uses
  Windows, SysUtils, Classes,StdCtrls, ExtCtrls, ComCtrls, Dialogs,
  IdMessage, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
  IdExplicitTLSClientServerBase,IdMessageClient, IdSMTPBase, IdSMTP, IdText,
  IDAttachmentFile;

function SendEMail(SenderName, SenderAddress: PChar;
    Receivename, ReceiveAddress: PChar; MailSubject, MailContent: PChar;
    JpgFileName: PChar; SendType: Integer; PicID: PChar; IsCustom: Boolean;Attachment:PChar): Boolean; stdcall;
function ConnectMailServer(Host, UserName, Password: PChar;
    Port: Integer): Boolean; stdcall;
procedure DisconnectMail; stdcall;

type
  TSendMailObj = class
  private
    FHost: String;
    FPort: Integer;
    FUserName: String;
    FPassword: String;
    ASmtp: TIdSMTP;
  public
    property Host: string read FHost write FHost;
    property Port: Integer read FPort write FPort;
    property UserName: String read FUserName write FUserName;
    property Password: String read FPassword write FPassword;
    constructor Create;
    function ConnectServer: Boolean;
    function SendEMail(SenderName, SenderAddress: PChar;
      Receivename, ReceiveAddress: PChar; MailSubject, MailContent: PChar;
      JpgFileName: PChar; SendType: Integer; PicID: PChar;
      IsCustom: Boolean;Attachment:PChar): Boolean;
  end;

var
  SendObj: TSendMailObj;

implementation

function SendEMail(SenderName, SenderAddress: PChar;
    Receivename, ReceiveAddress: PChar; MailSubject, MailContent: PChar;
    JpgFileName: PChar; SendType: Integer; PicID: PChar; IsCustom: Boolean;Attachment:PChar): Boolean; stdcall;
begin
  Result :=  SendObj.SendEMail(SenderName, SenderAddress, Receivename,
          ReceiveAddress, MailSubject, MailContent,
            JpgFileName, SendType, PicID, IsCustom,Attachment);
end;

function ConnectMailServer(Host, UserName, Password: PChar;
    Port: Integer): Boolean; stdcall;
begin
  try
    //if SendObj = nil then
    SendObj := TSendMailObj.Create;
{    if SendObj.ASmtp.Connected then
      SendObj.ASmtp.Disconnect;  }
    SendObj.Host := StrPas(Host);
    SendObj.Port := Port;
    SendObj.Username := StrPas(UserName);
    SendObj.Password := StrPas(Password);
    Result := SendObj.ConnectServer;
  except
    Result := False;
  end;
end;

procedure DisconnectMail; stdcall;
begin
  if SendObj <> nil then
  begin
    if SendObj.ASmtp <> nil then
      SendObj.ASmtp.Disconnect;
    SendObj := nil;
    SendObj.Free;
  end;
end;
{ TSendMailObj }

function TSendMailObj.ConnectServer: Boolean;
begin
  ASmtp.Host := FHost;
  ASmtp.Port := FPort;
  ASmtp.Username := FUserName;
  ASmtp.Password := FPassword;
  try
    ASmtp.Connect;
    Result := ASmtp.Connected;
  except
    Result := False;
  end;
end;

constructor TSendMailObj.Create;
begin
  ASmtp := TIdSMTP.Create(nil);

end;

function TSendMailObj.SendEMail(SenderName, SenderAddress, Receivename,
  ReceiveAddress, MailSubject, MailContent, JpgFileName: PChar;
  SendType: Integer; PicID: PChar; IsCustom: Boolean;Attachment:PChar): Boolean;
var
  IdBody, IdHtml: TIdText;
  Att: TIdAttachmentFile;
  AMessage: TIdMessage;
  ASmtp_1: TIdSMTP;
begin
  ASmtp_1 := TIdSMTP.Create(nil);
  ASmtp_1.Host := FHost;
  ASmtp_1.Port := FPort;
  ASmtp_1.Username := FUserName;
  ASmtp_1.Password := FPassword;
  //ASmtp_1.AuthType := atDefault;
  ASmtp_1.Connect; // }
  if not ASmtp.Connected then
    ASmtp.Connect;
  AMessage := TIdMessage.Create(nil);
  with AMessage do
  begin
    NoDecode := False;
    NoEncode := False;
    ContentType := 'multipart/mixed';
    Encoding := meMIME;
    MsgId := 'PrettyPic';
    if FileExists(StrPas(JpgFileName)) then
      References := ChangeFileExt(ExtractFileName(StrPas(JpgFileName)), '')
    else
      References := '';
    Recipients.Clear;
    with Recipients.Add do
    begin
      Name := StrPas(Receivename);
      Address := StrPas(ReceiveAddress);
    end;
    Subject := StrPas(MailSubject);
    Sender.Name := StrPas(SenderName);
    Sender.Address := StrPas(SenderAddress);
    From.Name := Sender.Name;
    From.Address := Sender.Address;
    if SendType = 0 then
    begin
      IdBody := TIdText.Create(MessageParts);
      IdBody.ContentType := 'text/plain';
      IdBody.Body.Add(StrPas(MailContent));
      IdBody.Body.Add('');
    end
    else
    begin
      IdHtml := TIdText.Create(MessageParts);
      IdHtml.ContentType := 'text/html;charset=gb2312';
      IdHtml.ContentTransfer := '7bit';
      IdHtml.Body.Add(' <html>');
      IdHtml.Body.Add('  <head>');
      IdHtml.Body.Add('      <title>' + StrPas(MailSubject) + ' </title>');
      IdHtml.Body.Add('  </head>');
      IdHtml.Body.Add('  <body title="' + References + '">');
      IdHtml.Body.Add('    ' + StrPas(MailContent) + ' <br>');
      if (not IsCustom) and FileExists(StrPas(JpgFileName)) then
        IdHtml.Body.Add('      <img src="cid:' + StrPas(PicID) + '" alt="' + ExtractFileName(StrPas(JpgFileName)) +
                            '" name="' + ExtractFileName(StrPas(JpgFileName)) + '" title="">');
      IdHtml.Body.Add('  </body>');
      IdHtml.Body.Add(' </html>');
    end;
    if FileExists(StrPas(JpgFileName)) then
    begin
      Att := TIdAttachmentFile.Create(MessageParts, StrPas(JpgFileName));
      Att.ExtraHeaders.Values['Content-ID'] := StrPas(PicID);
      Att.ContentType := 'image/jpg';
    end;  
    if FileExists(StrPas(Attachment)) then
    begin
      Att := TIdAttachmentFile.Create(MessageParts, StrPas(Attachment));
    end;
  end;
  try
    ASmtp_1.Send(AMessage);
    if Att <> nil then
      Att.Free;
    if IdBody <> nil then
      IdBody.Free;
    if IdHtml <> nil then
      IdHtml.Free;
    if AMessage <> nil then
      AMessage.Free;
    ASmtp_1.Disconnect;

    ASmtp_1.Free; //}
    ASmtp.Disconnect;
    Result := True;
  except on e: Exception do
  begin
    Result := False;
  end;
  end;

end;

end.


Update : 2009-01-14 Size : 1685 Publisher : kennyxue

《风越代码生成器 [FireCode Creator]》是一款采用.Net FrameWork2.0框架、基于多种数据库的程序代码生成软件,可快速建立数据信息的:添加、编辑、查看、列表、搜索功能。默认提供asp、aspx WEB程序、.net普通三层框架程序、.net Windows程序,多种代码框架及多个界面设计模板,均可任意修改管理。通过自定义生成程序的界面风格与输出代码,用户可将其扩展为ASPX/ASP/PHP/JSP等各种程序的代码生成器。内置的.net代码框架,能建立C#语言的.net解决方案,可在VS2005中直接编辑,既能帮助.net初学者快速入门,更可最大限度提高.net程序员的代码编写效率。 01、支持生成的ASPX/ASP/PHP/JSP等页面在本机自动发布、调试(需安装IIS或对应WEB服务器) 02、支持Microsoft SQL Server、Microsoft Access、Oracle、MySql、Excel、FoxPro、FoxBase、Text等数据库连接 03、支持从数据表、视图(Access为查询)中读取数据字段 04、支持通过数据表中的组合主键传递参数 05、支持CSS统一设置页面风格 06、支持多种控件输入方式: 文本框 文本域 UBB文本框(支持UBB文本输入) 密码框 隐藏域 日期选择 单选框 复选框 下拉框 多选列表 单选列表 批量上载 上载文件 上载到库 07、支持多种信息显示方式: 显示文字 链接文件 文本框 文本域 显示图片 背景声音 视频播放 显示flash 08、支持检测提交字符的最小、最大输入长度、是否空值/唯一值、文本类型:★ 不检测 非特殊字符 仅单词字符 仅单词字符空格 仅26个字母 仅中文字符 仅允许整数 仅允许小数 仅日期/时间 仅日期+时间 仅日期 仅时间 仅允许邮箱 仅允许网址 仅允许IP 仅身份证号 仅国内电话 仅国内手机 09、支持对用户输入内容进行服务器端与客户端JS双重验证,有效防止SQL注入 ★ 10、支持自动生成多组多级的级联下拉框功能,快速建立如:省、市、县/公司、部门、小组等形式下拉框 ★ 11、支持表单提交超过100KB的文本数据 ★ 12、支持多文件上载、修改、删除记录时同步删除文件 13、支持控件名加密,使输入控件的名称与字段名不同,防止他人从客户端HTML中猜解 ★ 14、支持列表、搜索页面对数据记录进行实时排序、修改、批量删除等功能 15、支持表头/单独表格搜索两种布局方式 16、提供多种灵活翻页方案,用户可设置每页记录条数、上/下页、前/后N页、输入数字跳转到指定页面等,提高海量数据翻页速度 17、提供丰富的建站常用VB、JS函数库 ★ 18、更多扩展功能: 添加、修改页面在保存信息前进行预览功能 添加、修改页面提交后自动跳转并刷新列表页 字段描述批量格式化,可从字段名、描述生成,加强英文字符处理 列表、搜索页面隔行颜色、点击变色设置 根据数据库字段允许空值状态自动设置输入检测代码 页面皮肤模板设置,根据网页模板快速生成页面 ★ 设置指定字段在编辑信息时为只读状态 字段需要二次输入(如输入两次密码,以验证其正确性) ★ 在列表中直接批量编辑字段值,便于管理员维护 列表、搜索文件自动读取链接数据表值的实际信息 发送邮件功能,设置字段为邮件对应信息,可发送附件 ★ (繁、简、英)单语言版本 ★ 多语言页面实时翻译功能(默认:繁、简、英,可增加其它语言) ★ 多语言编码支持(GB2312/UTF8) ★ 生成提交校验码图片 ★ 搜索、列表文件以详细列表页(留言板风格)显示 生成权限,限制用户对指定页面的添加、删除、编辑权 将查询结果导出为CSV、HTML、EXCEL文件 ★ 生成不同选择字段的SQL语句 生成数据库字典 ★ 模板代码生成器,可自定义模板、变量生成代码 ★ 19、提供建站常用辅助工具: 屏幕尺 剪切板,保存最近指定次数的历史记录 常用加解密、编解码(DES、MD5、SHA、BASE64) 批量提取文本,支持正则表达式,可将HTML等文件中指定内容存入数据库 批量查找替换,支持正则表达式 批量文件、文件夹改名,支持正则表达式 正则表达式测试器(可设置、保存常用正则表达式) 获取键盘的按键值 网页隐藏资源下载,可下载无法直接得到URL的SWF、图片、音乐等资源 获取汉字的拼音、五笔编码、笔画数、笔顺名、部首等信息,并可进行汉字繁/简体,GB/BIG转换 代码编排器,CSS排版、JS、ASP、HTML注释清理
Update : 2011-02-06 Size : 12342355 Publisher : 1611541313@qq.com

嵌入式FAT文件系统免费源码下载 本文件系统兼容FAT16/FAT32文件系统格式,兼容长文件名,兼容GB2312/UNICODE汉字编码(支持中文),并且实现了对子目录的支持,实现了文件的读取,写入,创建,删除等文件系统的常用功能。另外,代码都使用C编写,可以移植到各种单片机平台上来实现文件系统模块。 (FAT16是免费代码,用户可直接使用。 本代码有FAT32(兼容FAT16)和多个盘的版本(收费), 如果需要,请与我们联系!qq:292942278,E-MAIL:tony_yang123@sina.com.cn)
Update : 2011-02-27 Size : 1008478 Publisher : figureyang

DL : 0
K-PageSearch是由Kwindsoft在2007年自主研发的专为行业、专类信息检索设计的网页搜索引擎。主要功能特点:网络蜘蛛、定向采集、正文提取、中文分词、全文索引、相关度排序、网页快照、相关搜索、竞价排名;后台数据库采用Microsoft SQL Server,静态化搜索系统设计采用XML数据岛缓存搜索结果提高系统的稳定性和性能、节省服务器资源减轻系统负担。 网络蜘蛛 K风蜘蛛组件包括三大功能模块:链接采集、网页分析、无效网页扫描; 自动识别GB2312、BIG5、UTF-8、Unicode等网页编码; 文件类型证察防止非文本类型文件采集; K风蜘蛛可以采集ASP、PHP、JSP等动态数据网页和HTML、SHTML、XHTML等静态网页; 支持续采功能,如果因系统、网络等故障问题终止采集,系统将在下次启动采集时提示您是否“继续采集”或“结束任务”; 采集任务管理功能可以设置多个采集任务安排计划工作,每一个采集任务将会顺次运行; 定向采集 指定采集特定的网页,进行专类信息网页采集是垂直搜索引擎提高内容质量和相关度的关键技术。 链接包含关键字:链接中必须包含的关键字;例如:download|mp3|soft;可以使用“|”分隔多个包含关键字; 链接排除关键字:链接中不包含的关键字;例如:download|mp3|soft;可以使用“|”分隔多个排除关键字; 网页包含关键字:网页中必须包含的关键字;例如:K风|网页|搜索;可以使用“|”分隔多个包含关键字; 网页排除关键字:网页中不包含的关键字;例如:K风|网页|搜索;可以使用“|”分隔多个排除关键字; 正文提取 Kwindsoft自主研发的正文提取组件,它的功能是把一个网页的主题中心内容提取出来并把与该网页主题无关的信息(广告、导航、栏目等非网页正文内容信息)过滤。此项技术有效保证网页信息采集的质量提高检索相关度,智能识别、准确提取网页正文,内容网页提取识别准确率达到80%以上。
Update : 2011-04-14 Size : 716570 Publisher : gongcolin

实现了汉字与unicode,gb2312进行转换QQ:547170882
Update : 2011-04-23 Size : 246267 Publisher : duobaiduodu

使用 8051 控制的 GB2312 之汉字语音系统,用了常用一级汉字的多音处理发声,内附上 keil C51 软件工程.
Update : 2011-05-29 Size : 140529 Publisher : xyz543

unicode gb2312 转换
Update : 2012-02-28 Size : 100217 Publisher : yujinll91

DL : 0
24和16点阵汉字字库处理程序-24 and 16 lattices Chinese characters fonts disposal procedure
Update : 2024-05-19 Size : 573440 Publisher : 站长

编码转换工具 charset tool v1.0.2 我写的文本编码转换工具。可以对常见字符集做转换,包括简繁通,big5-->gb2312.唯一缺点是要安装java JRE.-transcoding tool charset tool v1.0.2 I wrote the text encoding conversion tools. Can the common character set conversion done, including 66.248.97.196 Qualcomm, big5-- gt; Gb2312. The only drawback is to install java JRE.
Update : 2024-05-19 Size : 208896 Publisher : 飞飞

gsm at中文指令集-gsm at Chinese Instruction Set
Update : 2024-05-19 Size : 174080 Publisher : 秦俊

SMS文档1
DL : 0
Unicode码解码函数   -Unicode decoding function
Update : 2024-05-19 Size : 1024 Publisher : 华宰

gb2312和big5互相转换的程序-gb2312 big5 interchangeable and procedures
Update : 2024-05-19 Size : 31744 Publisher : 毕军波

DL : 0
关于点阵汉字字库,32*32点阵, 包括英文和GB2312的1&2字型, 可以把任何WINDOWS字型转换, 附带字表生成+字库生成+字库演示 -Chinese character on the lattice, 32* 32 dot matrix, including English and GB2312 12 fonts can be any Windows font conversion, fringe characters Table Generation generation font library demo
Update : 2024-05-19 Size : 281600 Publisher : 夏永明

DL : 0
GB码对应的unicode码。stb开发中能用的!-GB code corresponds to the unicode yards. STB development of usable!
Update : 2024-05-19 Size : 35840 Publisher : 简简

DL : 0
用java实现的输入法函数,里面含GB2312数据库。-used to achieve the input function, inside database containing GB2312.
Update : 2024-05-19 Size : 43008 Publisher : kim

这是一个音频的编解码库,使用标准的C++编写,有很好的移植性,对从事音频编程的同僚很有帮助-This is an audio codec library, the use of standard C preparation, a very good transplantation, for the audio programming colleagues helpful
Update : 2024-05-19 Size : 12288 Publisher :

在UNIX 系统下得到字符点阵信息嵌入式系统设计中消除内存丢失的策略matlab循环变量小技巧hard disk 1.8# device driverC程序中如何转换GB2312-in UNIX System character dot-matrix information to be embedded system design to eliminate memory loss strategy Matlab cycle variables tips# 1.8 hard disk device driverC procedures on how to change GB2312
Update : 2024-05-19 Size : 31744 Publisher : 钨钢

Zen Cart是一款免费的购物车软件,用于建立自己的网上商店.该软件采用PHP开放源码设计,界面友好,容易安装和定制,功能相当齐全,购物流程简洁直观, 您的客户即刻就能使用.内置促销、折扣、礼物券、新闻简讯和新商品通知功能,提供单件商品优惠或者全部商品折扣功能.-Zen Cart is a free shopping cart software, used to build their own online store. The software using PHP open source design, friendly interface and easy installation and customization, quite complete, the shopping process simple intuitive, your customers will be able to use immediately. Built-in promotions, discounts , gift coupons, news bulletins and new product notifications, providing a single commodity or all the goods and preferential discounts function.
Update : 2024-05-19 Size : 442368 Publisher : 胡小群

DL : 0
WAP-WML页面中文批量转换程序可以自动将整篇WAP网页中的GB2312码转换为UTF-8编码,支持对wml,asp,php,jsp等脚本中的中文字符的自动转换,程序提供了批量转换功能,指定要转换的目录后,工具可以自动将该目录以及子目录下的所有wml,asp,php,jsp等页面脚本文件进行GB2312->UTF-8字符转换,不用手动修改,即可以让整个wap网站的页面和脚本全面支持中文手机显示。-WAP-Chinese WML page volume conversion program that can automatically entire WAP pages of GB2312 yards to UTF-8 encoding, support for wml, asp, php, jsp scripts such as Chinese characters of the automatic conversion, the procedures for batch conversion function, to change the designated head recorded, this tool can automatically catalog and all subdirectories under the wml, asp, php, jsp scripts and other pages document GB2312- gt; UTF-8 characters conversion, no manual amendment, which allows the entire WAP site pages and scripts full support of the Chinese mobile phone display .
Update : 2024-05-19 Size : 240640 Publisher : 李强
« 1 2 ... 8 9 10 11 12 1314 15 16 17 18 ... 34 »
DSSZ is the largest source code store in internet!
Contact us :
1999-2046 DSSZ All Rights Reserved.