Guys, put it in Windows/System32 results the same thing. Nothing...
Here's the code used in de DLL. Is VB6.0.
#################################################
Option Explicit
Public CnnConn As New ADODB.Connection
Public CnnCmd As New ADODB.Command
Public CnnSel As New ADODB.Recordset
Public Function TakeConnectionA(ByVal cnnline As String)
CnnConn.Open cnnline
Do While Not CnnConn.State = 1
Loop
End Function
', campos As Integer
Public Function QueryA(ByVal SQL As String) As String
Dim comp As String, filds As String
Dim i As Integer, j As Integer
Dim aSQL As String
aSQL = SQL
With CnnCmd
.ActiveConnection = CnnConn
.CommandType = adCmdText
.CommandText = aSQL
Set CnnSel = .Execute
End With
With CnnSel
If .BOF And .EOF Then
QueryA = ""
Exit Function
Else
.MoveFirst
While Not .EOF
For j = 0 To .Fields.Count - 1
If j = 0 Then
filds = .Fields(j) & ";"
Else
filds = filds & .Fields(j) & ";"
End If
Next
filds = Mid(filds, 1, Len(filds) - 1)
If i = 0 Then
comp = filds & "\"
i = 1
Else
comp = comp & filds & "\"
End If
.MoveNext
Wend
comp = Mid(comp, 1, Len(comp) - 1)
End If
End With
QueryA = comp
'select_db = "OK"
End Function
Public Function InsertA(ByVal SQL As String)
With CnnCmd
.ActiveConnection = CnnConn
.CommandType = adCmdText
.CommandText = SQL
.Execute
End With
End Function
####################################################
Thanx for your help guys.