我將一個VB6應用程序轉換爲C#。我開始在VB6應用程序的頂部並從那裏開始。什麼是所有的RS。東東?我不明白?VB6到C#這個VB6代碼是什麼意思?
Sub Main()
Dim RS As ADODB.Recordset
Dim FileName As String, FilePath As String
Dim Test As Boolean
Dim ResultCode As xcdError
Dim oAccess As Access.Application
Dim Zip_File As String
On Error GoTo ErrorHandler
' Make a connection to the database
Call MakeDBConnection
' Create a recordset of the directories to check
Set RS = New ADODB.Recordset
RS.ActiveConnection = DB
RS.CursorType = adOpenDynamic
RS.LockType = adLockOptimistic
RS.Open "Select ConversionDefinition.* From ConversionDefinition"
' Check the directories for Raw Data
' If the required data is found, then start the coversion application
If Not (RS.EOF And RS.BOF) Then
RS.MoveFirst
Do While Not (RS.EOF)
我希望這是一個小應用程序。如果沒有,您可能需要考慮使用像[Artinsoft的工具]這樣的第三方轉換器(http://www.artinsoft.com/vbc_csharpgen.aspx) – MarkJ 2010-11-10 12:07:58