Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- ActiveX controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00223965
Message ID:
00224441
Vues:
22
>Hi Morys,
>To Q1:
>No You don't have to place your ActiveX in Windows/System. Just register where it is: Regsvr32 c:\somedir\myactivex.ocx
>
>To Q2: Use GETE():
>
>win_system = GETE("windir") + "\SYSTEM"

Wrong way to do this; the system directory isn't necessarily there (e.g. NT uses the SYSTEM32 directory.) Best practice is to either use the Win32 API call GetSystemDir() - there's code for this in the FAQ under Win32 and Other APIs. You can also get the information from the Wscipt.Shell's SpecialFolders collection if you've got the Windows Scripting Host available.
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