Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DSN Names
Message
De
13/10/2004 03:02:40
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
À
13/10/2004 02:41:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00950942
Message ID:
00950943
Vues:
12
Hi Darren,

I'm not sure this is 100% what you want but I think its along the right lines. Theres a REGISTY class shipped with VFP that can get this sort of info. In the example below i've used the class but i'm sure you can nick the specific API calls from the class if that fits your needs.

LOCAL loODBCReg, lnErrNum, laODBCData
DIMENSION laODBCData[1]
set default to "C:\Program Files\Microsoft Visual Studio\Vfp98\FFC\"
IF NOT "REGISTRY.VCX" $ UPPER(SET("CLASSLIB"))
SET CLASSLIB TO registry ADDITIVE
ENDIF

loODBCReg = CREATEOBJECT("ODBCReg")
DIMENSION w_test[1]
w_test = loODBCReg.getodbcdrvrs(w_test)

Hope this gives you an idea of what you want to do. Let me know if I can help anymore.

Jon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform