查看单个帖子
旧 2009-04-20, 08:04 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】关于如何处理在vb.net里汉字乱码问题

关于如何处理在vb.net里汉字乱码问题
www.dimcax.com
关于如何处理在vb.net里汉字乱码问题我用如下代码去处理
但出现的是乱码
如何解决,不胜感激
dim mtextobject as autocad.acadmtext
dim mtextstring as string
dim insertionpoint(2) as double
dim width as double
'定义文本的宽度,书写位置
width = 45
insertionpoint(0) = pointtop(0) - 116.0# : insertionpoint(1) = pointtop(1) + 7.0# : insertionpoint(2) = pointtop(2)
mtextstring = "\u+2205 \u+2770"
dim acadapp as autocad.acadapplication
on error resume next
acadapp = getobject(, "autocad.application")
acadapp.activedocument.activetextstyle.fontfile = "c:\windows\fonts\simsun.ttf"
mtextobject = acadapp.activedocument.modelspace.addmtext(insertionpoint, width, mtextstring)
你直接用汉字不行么?
用单文本(addtext)直接输入汉字,显示正常
而用多本文(addmtext)则是乱码
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)