将Delphi Comport代码转换为Vb.net [英] Converting Delphi Comport Code to Vb.net
本文介绍了将Delphi Comport代码转换为Vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好亲爱的所有人,
我面临将delphi代码转换为vb.net的问题......任何机构都会帮我解决问题...请检查下面的代码
Hello Dear All,
I am facing a problem with convert delphi code to vb.net... any body help me to get the solution please... please check the code below
m_arTxBfx:Array [0..255] of Byte; //Output Buffer
m_arRxBfx:Array [0..255] of Byte; //Input Buffer
myPort.ClearBuffer(false,true);
myPort.Write(m_arTxBfx[0],m_InputLength+4);
现在我需要转换它vb.net
我试过这种方式......
Now I need to convert it vb.net
I have tried this way...
myPort.write(m_arTxBfx,m_InputLength,4)
但显示错误。 ......
请帮帮我...
先谢谢
Moseur
but its showing error.......
Please Help me ...
Thanks in Advance
Moseur
推荐答案
您必须按照相同的逻辑从头开始编写代码。你需要的课程是System.IO.Ports.SerialPort
:
SerialPort类(System.IO.Ports) [ ^ ]。
-SA
You have to write code from scratch, following the same logic. The class you need isSystem.IO.Ports.SerialPort
:
SerialPort Class (System.IO.Ports)[^].
—SA
这篇关于将Delphi Comport代码转换为Vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文