Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Control delay
Message
De
20/01/2001 19:39:58
 
 
À
20/01/2001 19:10:03
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00466292
Message ID:
00466296
Vues:
11
>I've got an app that uses the Web Browser Control to display some XML and text on a form. When I give it the Navigate2(filename) on my development machine (W2K/P3/450/128), it works just fine. On my test machine (W2K/P2/400/128) I had to throw in a delay (FOR N = 1000000/NEXT n) after issuing the Navigate2 command or it would never display the loaded document. I checked the DownloadComplete Event and it was firing (without the delay) but nothing was being displayed. I got the clue for the delay since the crazy thing would work every time in the debug mode if I had a breakpoint prior to the Navigate2 and then single stepped through the loading.
>

At least call Sleep() rather than burn cycles in a loop:

 DECLARE INTEGER Sleep IN WIN32API INTEGER
=Sleep(2000) && time in ms

>The IE5 versions are slightly different (5.00.3103.100 on the development machine and 5.50.4134 on the test machine) and a corresponding difference in versions of the SHDOCVW dll.
>
>I've got the thing working with that stupid delay but I HATE programming like that! Anyone have any ideas or has seen this before?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform