Information générale
Catégorie:
Fonctions Windows API
In my application I use the odbccp32.dll to configure my ODBC settings programatically. The syntax is as follows
DECLARE Integer SQLConfigDataSource in odbccp32.dll Integer, Integer,;
String, String
settings="DSN=acctpay"+chr(0)+;
"Description=acctpay"+chr(0)+;
"SourceDB="+SYS(5) + SYS(2003)+"\acctpay.dbc"+chr(0)+;
"SourceType=DBC"
SQLConfigDataSource(0,1,"Microsoft Visual FoxPro Driver",settings)
Randomly I get an error 2027 "Declare DLL call caused an exception"
I do not get the error all the time and seems to have just started happening over the past couple months.
Does anyone know if there is an updated odbccp32.dll or another way to configure ODBC setting from within VFP ?
Thanks For Your Help !
Stephen J. Hunt
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement