i have created a ActiveX dll using the below mentioned code...Ho can i call the same into a Visual basic 6.0 Application.. I have converted this to a DLL
[code=vb]
Public Function GetDet(ByVal str As String) As ADODB.Recordset
On Error GoTo Err:
CON.CursorLocat ion = adUseClient
strCon = "Connection "
CON.Open (strCon)
If REC.State = 1 Then REC.Close
REC.Open "select emp_name from employee_master where emp_id='" & str & "'", CON, adOpenForwardOn ly, adLockReadOnly
If Not REC.EOF Then
Set GetDet = REC
REC.MoveNext
Else
MsgBox "No Employee Found"
End If
Err:
End Function[/code]
If anybody know the code to call the same to a VB6.0 Application program. KIndly let me know
[code=vb]
Public Function GetDet(ByVal str As String) As ADODB.Recordset
On Error GoTo Err:
CON.CursorLocat ion = adUseClient
strCon = "Connection "
CON.Open (strCon)
If REC.State = 1 Then REC.Close
REC.Open "select emp_name from employee_master where emp_id='" & str & "'", CON, adOpenForwardOn ly, adLockReadOnly
If Not REC.EOF Then
Set GetDet = REC
REC.MoveNext
Else
MsgBox "No Employee Found"
End If
Err:
End Function[/code]
If anybody know the code to call the same to a VB6.0 Application program. KIndly let me know
Comment