资源大小: 12KB
发布时间: 2012-02-01
文件格式: rar
下载次数: 1
分享到:

下载地址:

下载地址1
(本站为飞网专业下载站,域名:down.cfei.net)

资源简介:

直接将文档解压缩后复制到system32文件夹中即可为实现斑马打印机对汉字的打印,需调用Fnthex32.dll的函数GETFONTHEX()对汉字进行转换,C申明: function int GETFONTHEX(string outstr,string fontname, int orient,int height,int width,int bold,int ITalic,ref string hexbuf) library "fnthex32.dll"函数调用: integer int_filenum string named,cBuf GETFONTHEX("条码测试", "宋体", "chnstr01", 0, 50, 0, 1, 0, cBuf)//测试汉字转换是否成功//named='test.txt' int_filenum=FileOpen(named,StreamMode!,write!,Lockwrite!,Append!)filewrITe(int_filenum,cBuf) fileclose(int_filenum) VB中申明:Private Declare Function GETFONTHEX Lib "fnthex32.dll" (ByVal chnstr$, ByVal fontname$, ByVal chnname$, ByVal orient%, ByVal height%, ByVal width%,ByVal bold%, ByVal italic%, ByVal hexbuf$) As Integer调用:nCount = GETFONTHEX("条码测试", "宋体", "chnstr02", 0, 50, 0, 1, 0, cBuf)


飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。