jeu. 06 janvier 2011, 10h36
Thierry N
atoutfox.public.association
Re: Détecter vfp9rxxx.dll
Moins d'une milliseconde pour trouver la dll sur mon vieux PIV
Chapeau bas Maître Gregory
;)
Thn
-----------------------------------------------------------
LOCAL secondes, success, obj, colObj as Collection, dllLoc
secondes = Seconds()
success = true
do case
case !ModuleBits_Object(@m.obj)
assert false
success = false
case !m.obj.GetModuleCollection(@m.colObj)
assert false
success = false
otherwise
for each dllLoc in colObj
dllLoc = Lower(m.dllLoc)
IF JustStem(m.dllLoc) = 'vfp9' AND JustExt(m.dllLoc) == 'dll'
? dllLoc
ENDIF
endfor
endcase
? (Seconds() - m.secondes) * 1000, 'millisecondes' && < 1 ms
RETURN m.success
"Gregory" <NoOne@NoWhere.com> a écrit dans le message de
news:ig2b98$iu7$1@news.niouzes.net...
> Il y a un autre moyen - voir classe jointe
>
> Elle retourne une collection de dll chargees
>
> Tu te debrouilles pour retrouver celle dont tu as besoin ?
> --------------------------------------------------------------------------
------
> local success
> success = true
>
>
> local obj, colObj
>
> do case
> case !m.success
>
> case !ModuleBits_Object(@m.obj)
> assert false
> success = false
>
> case !m.obj.GetModuleCollection(@m.colObj)
> assert false
> success = false
>
> otherwise
> local dllLoc
>
>
> for each dllLoc in colObj
> ? dllLoc
> endfor
> ?colobj.Count
>
> endcase
> ______
> Gregory
> ______
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000004745