Click here to Skip to main content
15,916,215 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: try this.... Pin
bhawna_k28-Feb-07 1:16
bhawna_k28-Feb-07 1:16 
Answerfinally... Pin
manni_n28-Feb-07 2:20
manni_n28-Feb-07 2:20 
GeneralRe: finally... Pin
bhawna_k28-Feb-07 2:54
bhawna_k28-Feb-07 2:54 
GeneralRe: finally... Pin
manni_n28-Feb-07 3:38
manni_n28-Feb-07 3:38 
AnswerRe: vb.net Pin
balakpn28-Feb-07 0:55
balakpn28-Feb-07 0:55 
GeneralRe: vb.net Pin
bhawna_k28-Feb-07 1:24
bhawna_k28-Feb-07 1:24 
GeneralRe: vb.net Pin
balakpn28-Feb-07 3:20
balakpn28-Feb-07 3:20 
AnswerRe: vb.net Pin
taherjaorawala28-Feb-07 2:20
taherjaorawala28-Feb-07 2:20 
GeneralRe: vb.net Pin
balakpn28-Feb-07 3:23
balakpn28-Feb-07 3:23 
GeneralRe: vb.net Pin
taherjaorawala28-Feb-07 18:53
taherjaorawala28-Feb-07 18:53 
GeneralRe: vb.net Pin
balakpn1-Mar-07 1:33
balakpn1-Mar-07 1:33 
GeneralVB.Net Pin
Priya_200727-Feb-07 22:45
Priya_200727-Feb-07 22:45 
GeneralRe: VB.Net Pin
Steven J Jowett27-Feb-07 23:52
Steven J Jowett27-Feb-07 23:52 
Answertry this.... Pin
manni_n28-Feb-07 0:38
manni_n28-Feb-07 0:38 
Questioncreation of forms Pin
balakpn27-Feb-07 22:15
balakpn27-Feb-07 22:15 
AnswerRe: creation of forms Pin
Tamimi - Code27-Feb-07 22:19
Tamimi - Code27-Feb-07 22:19 
AnswerRe: creation of forms Pin
The ANZAC27-Feb-07 22:34
The ANZAC27-Feb-07 22:34 
AnswerRe: creation of forms Pin
taherjaorawala27-Feb-07 23:12
taherjaorawala27-Feb-07 23:12 
Questioncombo box Pin
taherjaorawala27-Feb-07 22:12
taherjaorawala27-Feb-07 22:12 
AnswerRe: combo box Pin
Tamimi - Code27-Feb-07 22:44
Tamimi - Code27-Feb-07 22:44 
GeneralRe: combo box Pin
taherjaorawala27-Feb-07 23:09
taherjaorawala27-Feb-07 23:09 
GeneralRe: combo box Pin
Tamimi - Code27-Feb-07 23:40
Tamimi - Code27-Feb-07 23:40 
GeneralRe: combo box Pin
TwoFaced28-Feb-07 8:09
TwoFaced28-Feb-07 8:09 
QuestionQuestions on Visual Studio 2005 Pin
eccw27-Feb-07 20:45
eccw27-Feb-07 20:45 
QuestionByte array problem Pin
loksiu0127-Feb-07 20:39
loksiu0127-Feb-07 20:39 
I am writing a reader driver by using visual basic.net. I want to flow a package in bytes to the reader. But it encounters some problems in sub programme sending package. Can anyone give me some suggestions??Thank you for your great help!!

Public Class RS232
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer
Dim value As Boolean
Dim target As Integer
Dim Data As Byte
Dim response As Byte()
Dim currentSerialPort As System.IO.Ports.SerialPort

Public Sub send_packet(ByVal cmd As Byte, ByRef b As Byte())


Dim crcresult As Byte


' 1. send preamble

buffer(0) = &HA55A ' wrong ******************************
' 2. send command
buffer(1) = cmd ' wrong *****************************
' 3. send data (optional)

buffer(2) = Data
' 4. calc crc
crcresult = calc_crc(b)
' 5. send crc
buffer(3) = crcresult
' may be wrong *****************************
currentSerialPort.Write(buffer, 0, 3)

End Sub
End class

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.