Click here to Skip to main content
15,917,702 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
sven-it8-Jan-08 5:20
sven-it8-Jan-08 5:20 
GeneralRe: Problem with OpenFiledialog - C# CompactFramework Pin
Not Active8-Jan-08 5:48
mentorNot Active8-Jan-08 5:48 
GeneralWindow.status Bar Pin
A.Asif8-Jan-08 4:40
A.Asif8-Jan-08 4:40 
GeneralRe: Window.status Bar Pin
Judah Gabriel Himango8-Jan-08 6:06
sponsorJudah Gabriel Himango8-Jan-08 6:06 
GeneralRe: Window.status Bar Pin
A.Asif8-Jan-08 6:43
A.Asif8-Jan-08 6:43 
GeneralRe: Window.status Bar Pin
Judah Gabriel Himango8-Jan-08 8:29
sponsorJudah Gabriel Himango8-Jan-08 8:29 
GeneralRe: Window.status Bar Pin
A.Asif8-Jan-08 9:09
A.Asif8-Jan-08 9:09 
GeneralFrom VB6 to C# Pin
haolan8-Jan-08 4:07
haolan8-Jan-08 4:07 
Hi everyone.

I have got some VB6 code i need to translate to C#, but i really cant understand the VB code.
The program is something that communicates with a serial dervice.

I do not know how much of the code I need to get translated, so it is possible that I will post more code later.
Until now i've got this code:

Private Sub Command1_Click()
Dim CheckSum As Byte, x, Tid
MSComm1.Settings = "1200,N,8,1"
Buffer = "GET" + vbCr
CheckAndSum Buffer ' add Checksum and Length of string
Buffer = Buffer + SumStr
'For x = 1 To Len(Buffer)
' Tid = Timer
' Do
' DoEvents
' Loop Until (Timer - Tid > 0.01)
' MSComm1.Output = Mid(Buffer, x, 1)
'Next x
MSComm1.Output = Buffer

End Sub

This should write some code to the Serial Port.
I have already got the code for creating the checksum.

When my device receives the GET command with vbCr (Carridge return), the checksum and the string Length, it should return 10 characters an example could be c=02345"Carrigde return"Checksum1Checksum2

I do not think you need more code that i pasted to do this. But I am not sure..

It would really be a great help if you could help me with this..
GeneralRe: From VB6 to C# Pin
led mike8-Jan-08 4:57
led mike8-Jan-08 4:57 
GeneralRe: From VB6 to C# Pin
haolan9-Jan-08 0:10
haolan9-Jan-08 0:10 
GeneralRe: From VB6 to C# Pin
Ennis Ray Lynch, Jr.8-Jan-08 6:58
Ennis Ray Lynch, Jr.8-Jan-08 6:58 
GeneralRe: From VB6 to C# Pin
Paul Conrad8-Jan-08 17:30
professionalPaul Conrad8-Jan-08 17:30 
GeneralRe: From VB6 to C# Pin
ChandraRam9-Jan-08 1:00
ChandraRam9-Jan-08 1:00 
Generalproblem in creating xsd/dtd files Pin
chanzeb8-Jan-08 4:00
chanzeb8-Jan-08 4:00 
GeneralRe: problem in creating xsd/dtd files Pin
Judah Gabriel Himango8-Jan-08 6:05
sponsorJudah Gabriel Himango8-Jan-08 6:05 
QuestionDynamic ToolTip: update the shown value Pin
kaminem8-Jan-08 4:00
kaminem8-Jan-08 4:00 
GeneralRe: Dynamic ToolTip: update the shown value Pin
Judah Gabriel Himango8-Jan-08 6:07
sponsorJudah Gabriel Himango8-Jan-08 6:07 
GeneralReference Type Members in a Struct Pin
pencilcake8-Jan-08 3:29
pencilcake8-Jan-08 3:29 
GeneralRe: Reference Type Members in a Struct Pin
Judah Gabriel Himango8-Jan-08 6:02
sponsorJudah Gabriel Himango8-Jan-08 6:02 
GeneralRe: Reference Type Members in a Struct Pin
pencilcake9-Jan-08 1:59
pencilcake9-Jan-08 1:59 
QuestionHow does WebSerice mechanism run? Pin
MehmetFurkan8-Jan-08 3:28
MehmetFurkan8-Jan-08 3:28 
AnswerRe: How does WebSerice mechanism run? Pin
Judah Gabriel Himango8-Jan-08 6:09
sponsorJudah Gabriel Himango8-Jan-08 6:09 
AnswerRe: How does WebSerice mechanism run? Pin
Ennis Ray Lynch, Jr.8-Jan-08 7:20
Ennis Ray Lynch, Jr.8-Jan-08 7:20 
GeneralSystem.OutOfMemoryException Pin
Gareth H8-Jan-08 3:27
Gareth H8-Jan-08 3:27 
GeneralRe: System.OutOfMemoryException Pin
Judah Gabriel Himango8-Jan-08 5:59
sponsorJudah Gabriel Himango8-Jan-08 5:59 

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.