Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating WSH sample
Message
 
 
To
27/07/2001 10:04:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536302
Message ID:
00536392
Views:
9
>>>Yes, thank you, this version works. Did I understand correctly, that every reference to WScript (at the beginning of the line) in the samples has to be converted to an Windows-API call?
>>
>>Yes, I have it found at "Q259103 - HOWTO: Use the Windows Scripting Host to Automate an Application". It seems to be that Wscript object accesible only inside the Windows Script Host and not creatable by OLE.
>
>Thanks, again. Now, having to invoke the WinAPI for different functions looks too complicated to me. It seems to me I should rather a) Run scripts directly (for instance, I can create a file with Visual FoxPro - copy the samples, as is, for a start - and run it), or b) Study the WinAPI, and run it without the W. Scripting Host.
>
>Hilmar.

< SET $0.02 ON >
I would use the integrated approach when available. WSH, ADSI, WMI, etc. are great COM-based wrappers to the WinAPI. A lot of the WinAPI functionality that would require memory management and structure manipulation has been incorprated into those packages with an easy VFP friendly interface.
< SET $0.02 OFF >

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform