General information
Category:
Windows API functions
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only