Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Fox Pro- Dsn Entry at run time
Message
De
28/05/2002 07:34:40
 
 
À
28/05/2002 06:05:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00661896
Message ID:
00661924
Vues:
30
>How do I create DSN entry for my visual fox pro free tables directory, automatically during Run Time.

I don't know of a way to do so without some coding, but you'd end up calling
the Windows API function SQLConfigDataSource() to do so - there is a sample declaration of the API call in the Windows API section #12675, and there's a sample creation of a DSN-less ODBC connection at runtime in the FAQ as #7870.

At some point, something has to run some code to either create the DSN-less connection or to record the DSN using the Windows API.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform