Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass HWND to exe ?
Message
 
 
À
16/07/2003 19:31:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00810893
Message ID:
00810898
Vues:
13
Bill,

Try
loIE = Null
lhWND = INT(VAL(cHWND))
oShell = CREATEOBJ('Shell.Application')
oIEColl = oShell.Windows
FOR EACH oIE IN oIEColl
  IF "IEXPLORE.EXE" $ oIE.FullName AND oIE.hWnd = lhWND
    loIE = oIE
    EXIT
  ENDIF
ENDFOR
oIEColl = NULL
oShell = NULL
...
>I'm using VFP 7.0
>
>In an exe, is there any way to use an instance of InternetExplorer that was created in another exe?
>
>myPrg
>  local loIE, lnHWND
>  loIE = CreateObject('InternetExplorer.Application')
>  lnHWND = loIE.HWND
>  do myExe.exe with transform(lnHWND)
>
>myExe.prg (inside myExe.exe)
>  lparameters cHWND
>  local loIE
>  loIE = ?????         << how do I get myExe to use the window created in myPrg
>
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform