Convert VB6 Code to C#

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

Hi, you have to help me convert my existing working VB6 code (which write in exe with component MSCOMM and timer ) to c# Dll.

This project was urgent, need to done within 1 day.

I paste some piece of my code here, you have to show me you can do it by convert the example below and send me inbox, so I will give you the project. Thanks

Function CalcCrc16(ByRef dbf() As Byte, ByVal lenh As Integer)

Dim lngCRC As Long 'Integer

Dim i As Integer, j As Integer

Dim lngTest As Long

lngCRC = &HFFFF&

For i = 1 To lenh

lngTest = dbf(i)

lngCRC = lngCRC Xor (dbf(i))

lngCRC = lngCRC And &HFFFF&

For j = 0 To 7

If lngCRC And &H1 Then

lngCRC = (lngCRC \ 2) Xor &H8408

lngCRC = lngCRC And &HFFFF&

Else

lngCRC = lngCRC \ 2

End If

Next j

Next i

CRC_MSB = lngCRC And &HFF

CRC_LSB = ((lngCRC \ 256) And &HFF) '8bit Shift to Right.

End Function

Function find_orig()

Dim sentbuf(4) As Byte

sentbuf(0) = &H2

sentbuf(1) = &HA7

sentbuf(2) = &H1

sentbuf(3) = &H0

sentbuf(4) = &HAA

[url removed, login to view] = 0

[url removed, login to view] = sentbuf

End Function

C# Programming Visual Basic

Project ID: #11652528

About the project

7 proposals Remote project Active 7 years ago

Awarded to:

Yknox

Hello I'm interesting your project very well I'm a Good VB, C#, DB, Math, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks

RM850 MYR in 2 days
(97 Reviews)
6.7

7 freelancers are bidding on average RM766 for this job

dvfabia

Hi, I am interested in your project. I like to ask for your email address so that I can send the C# code. Regards, Daniel Fabia

RM916 MYR in 10 days
(74 Reviews)
5.0
kstudio1

Wonderful project! We are pro in Matlab,C#,C++,VB6,Android,iPhone and etc. As we are masters of mathematics and control engineering, we will give you a successful result in time. Keep in touch with us,please... Tha More

RM200 MYR in 1 day
(10 Reviews)
3.4
shanufreelancer1

I have 6 plus years of experience in Microsoft Technologies, I am Having very good experience Angular js and third party controls like telerik and Kendo UI

RM513 MYR in 3 days
(0 Reviews)
0.0