Hello friends i recently converted my VB6 project to VB.net.
I am getting the following errors in the converted VB.net project:
'UPGRADE_ISSUE: Constant vbUnicode was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="55B59875-9A95-4B71-9D6A-7C294BF7139D"'
'UPGRADE_ISSUE: InputB function is not supported. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="367764E5-F3F8-4E43-AC3E-7FE0B5E074E2"'
Following is the code snippet which gives the error:
Dim EncryptedFilePath As String
Dim EncryptedFileNumber As Integer
Dim EncryptedText As String
EncryptedText = StrConv(InputB(LOF(EncryptedFileNumber), EncryptedFileNumber), vbUnicode)
Please correct this code snippet.
What I have tried:
i tried this but it is returning some other result. I am new to VB6 and VB.net, please help.
Dim value As String = LOF(EncryptedFileNumber)
Dim array() As Byte = System.Text.Encoding.ASCII.GetBytes(value)
EncryptedText = System.Text.Encoding.Default.GetString(array)