Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Calling a DLL written by VB

Avatar of ericting
ericting asked on
4 Comments1 Solution191 ViewsLast Modified:
Dear experts,

I have some functions in a DLL file that created with VB. I use it well with VB but now I need to Call  those functions  in a Delphi program. I would like to know how to reference the DLL and call the functions.

I have the code in VB.

Public Sub ChkLogin()

    Dim sql As String
    Dim adors As New ADODB.Recordset
    Dim AppConnect As New DNLib.CDN
    On Error GoTo err1
    Call AppConnect.OC_Connect("AppServer://", "", "", "")
    v_id = txtUserid.Text
    v_pass = txtPasswd.Text
    Call AppConnect.wst097a(v_id, v_pass, v_result)
    txtResult.Text = v_result
    Call AppConnect.OC_Release
    Set AppConnect = Nothing
    Exit Sub
    MsgBox Err.Source & " " & Err.Description, vbCritical

End Sub

Eric Ting
Avatar of Russell Libby
Russell LibbyFlag of United States of America imageSoftware Engineer, Advisory
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers