Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable ODBC tracing
Message
 
 
To
02/05/2007 16:17:42
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01221881
Message ID:
01221997
Views:
10
>Maybe we can start with babysteps.
>
>The prototype for SQLSetConnectAttr is:
>SQLRETURN SQLSetConnectAttr(
>     SQLHDBC     ConnectionHandle,
>     SQLINTEGER     Attribute,
>     SQLPOINTER     ValuePtr,
>     SQLINTEGER     StringLength);
>
>So in VFP, I'm doing:
>DECLARE INTEGER SQLSetConnectAttr IN odbc32 INTEGER, INTEGER, LONG, INTEGER
>
>Does this look OK to everyone?

I would guess something like
DECLARE SHORT SQLSetConnectAttr IN odbc32 ; 
    INTEGER ConnectionHandle, ; 
    INTEGER nAttribute, ; 
    STRING  ValuePointer, ; 
    INTEGER StringLength)
but I'm not API proficient. I'd wait for Anatoliy to de-chyper the declaration.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform