Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does Shell automation require an install on client's PC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00492495
Message ID:
00493105
Vues:
26
>>>>>>I have seen many neat things here at UT on Shell automation. Our app was "installed" the old fashion way, just dropped into a folder with all the necessary .dlls in that folder. An install was never done, just a COPY. To do any Shell automation, do some other "components" need to reside on the client's PC?
>>>>>>
>>>>>Brenda,
>>>>>
>>>>>I assume you're referring to the Shell.Application object. If so, the answer is yes, the Active Desktop has to have been installed. On Win95, it means that IE 4.01 with the Active Desktop option had to have been installed. The only way to get it installed on that version of Windows if it never had been would be to install it. This may mean uninstalling IE 5 (it didn't come with that version), installing 4.01, then re-installing IE 5. You can find out some stuff about the Shell.Application in the July 2000 issue of the VFUG newsletter. It's available on-line at www.vfug.org.
>>>>
>>>>
>>>>George,
>>>>
>>>>Why it's such a pain process? :( I tried today GetFolder() code by Ed Rauh (from FAQ section), but it didn't work on my work machine (Windows 95 with IE 5.5). It works on my home machine (Windows 98), but it gives me an error, if I hit a Cancel button on this dialog.
>>>
>>>You mean the install? I can't say for certain. I recall reading that when MS released IE 5.0 they wanted to minimize the download time, so they didn't include the Active Desktop. Further, I would speculate that at the time of release, including it may have been overkill in many cases as people had switched to Win98 anyway.
>>>
>>>I'm not familar with the FAQ you're speaking of so I can't comment on that.
>>
>>George,
>>
>>Regarding Ed's FAQ: go to the FAQ section and make a search by "Folder". First found item would be this FAQ. I just copied it to a program and ran. On my work machine it gives me an error, on my home computer it works, but gives an error on Cancel button. I guess, this little problem could be corrected, but I haven't analyzed the code yet.
>
>You mean the "Enhanced GETDIR() using Shell Object" I assume. Just glancing at it, I'd guess that the error's occurring when you try to spin through the folder object that's returned. All you'd have to do is add, directly before the iteration structure
IF VARTYPE(loFolder) # "X" && Or whatever the varible was
>  * Code here
>ELSE
>  RETURN ""
>ENDIF
Hi George,

It's really strange. If I change the line :
IF TYPE('oBrowseObject') = 'O'
as in Ed's code
to
IF VARTYPE(oBrowseObject) = 'O'
, it doesn't give an error and works correctly. Perhaps, because oBrowseObject evaluates to NULL, if I select Cancel button.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform