Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is there a way to use a radio as joystick through usb? Pin
Christian Graus19-Jul-09 15:16
protectorChristian Graus19-Jul-09 15:16 
NewsRe: Is there a way to use a radio as joystick through usb? Pin
Sonhospa19-Jul-09 20:46
Sonhospa19-Jul-09 20:46 
GeneralRe: Is there a way to use a radio as joystick through usb? Pin
Dave Kreskowiak20-Jul-09 4:09
mveDave Kreskowiak20-Jul-09 4:09 
QuestionSending Email Using Gmail [modified] Pin
Mohammed.Al-Qaisi19-Jul-09 1:09
Mohammed.Al-Qaisi19-Jul-09 1:09 
AnswerRe: Sending Email Using Gmail Pin
Vimalsoft(Pty) Ltd19-Jul-09 20:16
professionalVimalsoft(Pty) Ltd19-Jul-09 20:16 
GeneralRe: Sending Email Using Gmail Pin
Mohammed.Al-Qaisi19-Jul-09 22:22
Mohammed.Al-Qaisi19-Jul-09 22:22 
GeneralRe: Sending Email Using Gmail Pin
Vimalsoft(Pty) Ltd19-Jul-09 22:39
professionalVimalsoft(Pty) Ltd19-Jul-09 22:39 
QuestionAm I getting it right????? Please help!! Pin
ChiSmile18-Jul-09 20:00
ChiSmile18-Jul-09 20:00 
Hello gurus,
am cofused right now.
I used this link Making TripleDES Simple in Visual Basic .NET[^]"> to do my encryption
and I have the following code section in my project to decrypt a data from database input:

datadapt = New System.Data.SqlClient.SqlDataAdapter(cmd)
          ds = New DataSet
          datadapt.Fill(ds)
          ' ds.Tables.Add(dt)
          'datGrid.DataSource = ds.Tables(0)
          cn.Close()

          'Dim ind As Integer
          Dim dc As DataColumn = New DataColumn
          Dim dRow As DataRow
          dRow = dt.NewRow
          Dim i As Integer
          Dim by As Byte
          ' For Each dRow In ds.Tables("Lab").Rows
          For Each dRow In ds.Tables(0).Rows
              For Each dc In ds.Tables(0).Columns
                  'If dc.DataType.ToString() = "System.String" Then
                  If dRow(dc).ToString = "system.Byte" Then
                      decData = New cTripleDES(key, iv)

                      Dim str As String = dRow(dc).ToString

                      For i = 0 To str.Length - 1
                          by = Convert.ToByte(str(i))
                      Next

                      'Dim by() As Byte = StrToByteArray(dRow(dc))
                      dRow(dc.Caption) = decData.Decrypt(by)
                      'deRecData = decData.Decrypt(by)
                      'dt.Rows.Add(deRecData)
                      'ds.Tables.Add(dt)
                  End If
              Next
          Next
          datGrid.DataSource = ds.Tables(0)


The for loop should be able to retrieve the data in the encrypted form and then decrypt it.
I dont know if am doing the right thing, where did I get it wrong?

Thanks for ur help.

modified on Monday, July 20, 2009 6:13 AM

AnswerRe: Am I getting it right????? Please help!! Pin
Dave Kreskowiak20-Jul-09 4:07
mveDave Kreskowiak20-Jul-09 4:07 
QuestionConvert Byte to SByte without errors Pin
DaveyM6918-Jul-09 13:19
professionalDaveyM6918-Jul-09 13:19 
AnswerRe: Convert Byte to SByte without errors Pin
Luc Pattyn18-Jul-09 17:34
sitebuilderLuc Pattyn18-Jul-09 17:34 
GeneralRe: Convert Byte to SByte without errors Pin
DaveyM6918-Jul-09 22:02
professionalDaveyM6918-Jul-09 22:02 
GeneralRe: Convert Byte to SByte without errors Pin
DaveyM6919-Jul-09 1:05
professionalDaveyM6919-Jul-09 1:05 
AnswerRe: Convert Byte to SByte without errors Pin
gouderadrian18-Jan-11 22:17
gouderadrian18-Jan-11 22:17 
QuestionCould anyone help me with this?!!! [VB6] :((((( Pin
bijan.8k18-Jul-09 5:48
bijan.8k18-Jul-09 5:48 
AnswerRe: Could anyone help me with this?!!! [VB6] :((((( Pin
Eddy Vluggen18-Jul-09 9:03
professionalEddy Vluggen18-Jul-09 9:03 
AnswerRe: Could anyone help me with this?!!! [VB6] :((((( Pin
Paul Conrad18-Jul-09 19:52
professionalPaul Conrad18-Jul-09 19:52 
Questioncode for adding bios date in vb.net Pin
yogendrasalunke18-Jul-09 4:26
yogendrasalunke18-Jul-09 4:26 
AnswerRe: code for adding bios date in vb.net Pin
Luc Pattyn18-Jul-09 4:49
sitebuilderLuc Pattyn18-Jul-09 4:49 
AnswerRe: code for adding bios date in vb.net Pin
dan!sh 18-Jul-09 5:24
professional dan!sh 18-Jul-09 5:24 
GeneralRe: code for adding bios date in vb.net Pin
yogendrasalunke18-Jul-09 5:31
yogendrasalunke18-Jul-09 5:31 
QuestionEnum value calculation using chars [modified] Pin
DaveyM6918-Jul-09 0:51
professionalDaveyM6918-Jul-09 0:51 
AnswerRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 1:18
sitebuilderLuc Pattyn18-Jul-09 1:18 
GeneralRe: Enum value calculation using chars Pin
DaveyM6918-Jul-09 1:34
professionalDaveyM6918-Jul-09 1:34 
GeneralRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 1:42
sitebuilderLuc Pattyn18-Jul-09 1:42 

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.