Click here to Skip to main content
15,895,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a digitalpersona sdk sample in vb, i want to make its backend to mysql but my 1st problem is i cant connect or it gives an error in connecting to mysql, my odbc connection is ok, and when i use the code for connecting to other vb project its connected and ok, but when i use it in sample sdk of digitalpersona, it give an error in connecting,

here's my code:

VB
 Imports System.Data.Odbc

Delegate Sub FunctionCall(ByVal param)

Public Class MainForm

Dim sql As String
Private con As New OdbcConnection("DSN=db")

Dim cmd As OdbcCommand = Nothing

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try
con.Open()

Catch ex As Exception
MsgBox("Error Creating DB Connection")

End Try
End Sub


thanks in advance in your help.
Posted
Updated 15-Jan-15 16:19pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900