易截截图软件、单文件、免安装、纯绿色、仅160KB

求助VB与串口问题

采用VB发送接收ascii码!我的接收怎么是乱码?
VB code:

Private Sub com_init()

With MSComm1

.CommPort = 1 'COM1

.Settings = "9600, E, 7, 1"

.InputMode = comInputModeBinary

.InputLen = 14

.InBufferCount = 0

.InBufferSize = 50

.OutBufferCount = 0

.OutBufferSize = 50

.RThreshold = 14

.SThreshold = 1

.PortOpen = True

If MSComm1.PortOpen = False Then MsgBox "请先设置串口", 16, "提示"

End With

If Err Then '错误处理

MsgBox "串口通信无效"

End If

End Sub

Private Sub MSComm1_OnComm()

Dim filename As String

' Dim btReceive As Variant

Select Case MSComm1.CommEvent

Case comEvReceive

btReceive = MSComm1.Input

Picture1.Print btReceive(0); btReceive(1); btReceive(2); btReceive(3); btReceive(4); btReceive(5);

Picture1.Print btReceive(6); btReceive(7); btReceive(8); btReceive(9); btReceive(10); btReceive(11);

Picture1.Print btReceive(12);


相关问答:

vb打印问题


Printer.ScaleMode = 6
6表示毫米
Printer.PaperSize = vbPRPSA4

'初始坐标
x = 1
y = 4


'最大的线筐
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......

vb打印问题

大家好,问个vb打印问题


printer.print "dsff"
.....
....


Printer.EndDoc


打印成功后我将执行

sqlstr = "update vc_yh set pr=' 已打印 ', ......

用VB怎么实现这个程序的效果?

http://fp4bmg.blu.livefilestore.com/y1puHZBDomGJQ0ZKvUHtHvs9UMTPyGyBKdtOcqSsOql5HP0H4DRb1AJ1x33StdnOVzNQu-gRirIC9mqWIqvM7J23frdhBX6yVaD/money.exe
或者Reshacker把这个程序里面的图片替换掉也行!
( ......

简单的VB问题

初学VB,请各位大侠给予指点
Private Shared Function GetWorkflow(ByVal flow As WorkflowFlow) As WorkflowDocument3

      GetWorkflow = Nothing
        If ......

怎么在VB中把excel中的数导入到数据库中

怎么在VB中把excel中的数导入到数据库中
直接在vb中调用数据库的导入功能进行导入。

自己百度一下,代码海了去了,方法有好多


参考
http://blog.sina.com.cn/s/blog_4a384544010004zk.html

'判断 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号