Page 1 sur 1

[..] Faire fonctionner un Prog 32 bits sur du 64 bits

Posté : mer. 07 déc. 2016 14:37
par Faco
Bonjour bonjour,

Quelqu'un peu me faire fonctionner le bout de code en bas, compilé en 32, sur du 64 bits.
Ou suis je obligé de faire un :
-Une compilation x86 (toto_x32.exe)
-Une compilation x86 (toto_x64.exe)
-Un prog tiers avec :

Code : Tout sélectionner

If(@OSArch == "X86")Then
	FileInstall("C:\Path\toto_x86.exe","C:\LeChien\toto_x86.exe")
Else
	FileInstall("C:\Path\toto_x64.exe","C:\LeChien\toto_x64.exe")
EndIf
Le code en question :

Code : Tout sélectionner

func _getMac()	

	$macadresse = ""
	$foo = Run(@ComSpec & " /c nbtstat.exe -A " & @IPAddress1,"",@SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
    While 1
        $line = StdoutRead($foo)
        If @error Then ExitLoop
        $test="Adresse MAC = "
        if StringLen($line)>0 Then
            for $i=1 to StringLen($line) - 14
                if StringMid($line,$i,14)=$test then
                $macadresse=StringUpper(StringMid($line,$i+14,17))
                ExitLoop
                EndIf
            Next
        EndIf
    Wend
	Return $macadresse
EndFunc
Merci
++

Re: [..] Faire fonctionner un Prog 32 bits sur du 64 bits

Posté : mer. 07 déc. 2016 20:33
par jguinch
Voir ici, 2ème message (TT22)

Re: [..] Faire fonctionner un Prog 32 bits sur du 64 bits

Posté : jeu. 08 déc. 2016 19:41
par jl56
Bonjour à tous


jguinch m'avais répondu ceci pour un problème similaire je m'en était sortie
https://www.autoitscript.fr/forum/viewt ... 896#p90120

A+

JL56