I have tried to open a DSN less connection from a VB6 program to connect to an Informix database. The connection is opened if I do this from a VB app.
The code I have used is as follows.
conn.Provider = "MSDASQL.1"
conn.ConnectionString = "UID=userid;PWD=password;DB=phase1;HOST=10.12.1.32;SRVR=phase1_soc;SERV=1984;PRO=olsoctcp;Driver={INFORMIX 3.30 32 BIT};DSN='';"
conn.Open
But when I connect using the same code through a Dll made using VB6 I am not able to connect to the database.
I am using a Informix 3.3 Client SDK.
Pl. advise on how I will be able to connect using a dll.
The code I have used is as follows.
conn.Provider = "MSDASQL.1"
conn.ConnectionString = "UID=userid;PWD=password;DB=phase1;HOST=10.12.1.32;SRVR=phase1_soc;SERV=1984;PRO=olsoctcp;Driver={INFORMIX 3.30 32 BIT};DSN='';"
conn.Open
But when I connect using the same code through a Dll made using VB6 I am not able to connect to the database.
I am using a Informix 3.3 Client SDK.
Pl. advise on how I will be able to connect using a dll.