Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL error
Message
From
08/11/2002 10:44:37
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Declare DLL error
Miscellaneous
Thread ID:
00720301
Message ID:
00720301
Views:
50
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
Map
View

Click here to load this message in the networking platform