Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- ActiveX controls
Message
From
29/05/1999 18:51:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00223965
Message ID:
00224441
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform