Jump to content
Sign in to follow this  
adik2dmax666

[Solved]This is weird..

Recommended Posts

adik2dmax666

I created a youtube downloader which i compiled as x86 and x64.

now i have youtubedownloader_x86.exe and youtubedownloader_x64.exe.

I have this initialize script

If @CPUArch = "x64" Then
        ShellExecute("youtubedownloader_x64.exe")
    Else
        ShellExecute("youtubedownloader_x86.exe")
    EndIf

Im currently running on a x32 xp . meaning i should run the x86 app.

Why does @CPUArch return "x64" but my os is a 32bit xp. all x64 app errors "not valid win32 app"... :blink:

Edited by adik2dmax666

First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. -George Carrette[sub]GD Keylogger Creator (never released)[/sub][sub]Garena Autojoin v3.0[/sub]

Share this post


Link to post
Share on other sites
Justforfun

Run this and see what it returns

MsgBox(4096, "@CPUArch", @CPUArch)

Share this post


Link to post
Share on other sites
FlyinRiz

Im currently running on a x32 xp . meaning i should run the x86 app.

Why does @CPUArch return "x64" but my os is a 32bit xp. all x64 app errors "not valid win32 app"... :blink:

You can run a 32-bit OS on a 64-bit processor (AMD64 or Intel 64) but you can't run 64-bit apps on a 32-bit OS.

Try @OSArch instead.

-Aaron

Edited by FlyinRiz

Share this post


Link to post
Share on other sites
adik2dmax666

Run this and see what it returns

MsgBox(4096, "@CPUArch", @CPUArch)

MsgBox(4096, "@CPUArch", @CPUArch)

Returns x64

weird isn't it?


First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. -George Carrette[sub]GD Keylogger Creator (never released)[/sub][sub]Garena Autojoin v3.0[/sub]

Share this post


Link to post
Share on other sites
adik2dmax666

You can run a 32-bit OS on a 64-bit processor (AMD64 or Intel 64) but you can't run 64-bit apps on a 32-bit OS.

Try @OSArch instead.

-Aaron

solved!

MsgBox(4096, @OSArch, @OSArch)

returns x86 :blink:


First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. -George Carrette[sub]GD Keylogger Creator (never released)[/sub][sub]Garena Autojoin v3.0[/sub]

Share this post


Link to post
Share on other sites
Richard Robertson

The difference between CPU and OS architecture is that the CPU will always be some set value. You can run a 32 bit OS on a 64 bit processor.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×