Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can someone please help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00223067
Message ID:
00223135
Vues:
28
Thanx George,

You've been a big help as always!

Bob :-)

>>KB #Q155304
>Hi Bob,
>
>Here's how I translated the VB to VFP. Note the alias in use for the SQLConnect function. This has to be used because of the native command. My VB's pretty rusty, but I think these are right. You might want to compare them to what you've done.
>DECLARE INTEGER SQLAllocEnv IN "odbc32.dll";
>  INTEGER @phenv
>DECLARE INTEGER SQLAllocConnect IN "odbc32.dll";
>  INTEGER henv, INTEGER @phdbc
>DECLARE INTEGER SQLConnect IN "odbc32.dll" AS SQLConnect2;
>  INTEGER hdbc, STRING szDSN,;
>  INTEGER cbDSN, STRING szUID,;
>  INTEGER cbUID, STRING szAuthStr,;
>  INTEGER cbAuthStr
>DECLARE INTEGER SQLFreeEnv IN "odbc32.dll";
>  INTEGER henv
>DECLARE INTEGER SQLFreeConnect IN "odbc32.dll";
>  INTEGER hdbc
>DECLARE INTEGER Function SQLError IN "odbc32.dll";
>  INTEGER As Long, INTEGER hdbc As Long, INTEGER hstmt,;
>  STRING szSqlState, INTEGER pfNativeError,;
>  STRING szErrorMsg, INTEGER cbErrorMsgMax,;
>  INTEGER pcbErrorMsg
>hth,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform