Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable ODBC tracing
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01221881
Message ID:
01221997
Vues:
5
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform