Terranet Technologies  Welcome to TNet   Sign Up  Login 
           
HomeDevelopmentConsultingSolutionsUsersSupport
zip:
Weather in Tulsa, OK (74133)
Current Conditions:
Fair 79°F
Fair
Wind: CALM calm mph
SAT
9/4
Clear

L:55
SUN
9/5
Sunny
H:89
L:64
MON
9/6
Sunny / Wind
H:93
L:69
TUE
9/7
Scattered T-Storms
H:87
L:68

Last Update: 5:04:40 PM
weather.com

Services
ASP.Net
C#
VB
TSQL
   

Welcome to Terranet Technologies forum.  This is a private Web Service so it will require you to create a seperate account other than your Terranet account.   Please use your existing Terranet user name.  It will only require your email and a password to join.

Join | Logon
 All Threads | New ThreadView:  Search:  
 Author  Thread: Convert Code
codeking
Posts: 4
Convert Code
Posted: 19 Dec 06 1:00 PM
hi can anyone convert this VB lines to C#?


Dim RAW, arHex_Char_Set, mCounter, mKey, mOffset, Raw_Key, Hex_Cryp_Data
Dim EPassword As String = TextBox1.Text
Raw_Key = Right(EPassword, Len(EPassword) - InStr(EPassword, "|"))
mOffset = Right(Raw_Key, Len(Raw_Key) - InStr(Raw_Key, "|"))
mKey = Hex_Converter(Left(Raw_Key, InStr(Raw_Key, "|") - 1)) - Hex_Converter(mOffset)
Hex_Cryp_Data = Left(EPassword, Len(EPassword) - (Len(Raw_Key) + 1))

arHex_Char_Set = Split(Hex_Cryp_Data, Hex(mKey))

For mCounter = 0 To UBound(arHex_Char_Set)
RAW = RAW & Chr(Hex_Converter(arHex_Char_Set(mCounter)) / mKey)
Next



thanks
[Reply][Quote]
kroesch
Posts: 10
Re: Convert Code
Posted: 19 Dec 06 1:03 PM
Try looking at this site, is is great for converting C# to vb or vb to C#...
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
[Reply][Quote]
 Page 1 of 1 

Copyright© 1998 - 2010 Terranet Technologies LLC All rights reserved.