Author |
Message |
_aLfa_ Site Admin
Joined: 21 Sep 2002 Posts: 233 Location: Aveiro, Portugal
|
Posted: Sat Oct 12, 2002 6:53 pm
Post subject: what is the best way to know if a exe is compiled with vb5/6
|
|
the way i know that always works is to find the import table for the vbvm, but i think this is the hardest way
give m ur opinion... _________________ One thing only I know, and that is that I know nothing. (Socrates)
|
|
Back to top |
|
|
|
MrUnleaded Site Admin
Joined: 21 Sep 2002 Posts: 385 Location: California
|
Posted: Sat Oct 12, 2002 9:35 pm
Post subject: Re: what is the best way to know if a exe is compiled with v
|
|
[="_aLfa_":1cij57y0]the way i know that always works is to find the import table for the vbvm, but i think this is the hardest way
give m ur opinion...[/:1cij57y0]
um the way i currently do it......in the [Optional?]PE Header there is a value for the linker version....
ive found if it is 4.20 it is vb5.....
and if it is 6.0 then it is vb6.....
perhaps vb4 is decompilable in the same manner??
Last edited by MrUnleaded on Mon Aug 02, 2004 3:23 pm; edited 1 time in total
|
|
Back to top |
|
|
|
Anonymous New User
Joined: 10 Feb 2008 Posts: 0
|
Posted: Sat Oct 12, 2002 11:20 pm
Post subject:
|
|
Try to use the new linker (6.0) instead of the old one (4.2) with VB5, works great.
I would look at the runtime version inside the VB-header to check the difference.
|
|
Back to top |
|
|
|
MrUnleaded Site Admin
Joined: 21 Sep 2002 Posts: 385 Location: California
|
Posted: Mon Oct 14, 2002 4:27 pm
Post subject: eh?
|
|
[="Justin Sane":2w9xvdf6]Try to use the new linker (6.0) instead of the old one (4.2) with VB5, works great.
I would look at the runtime version inside the VB-header to check the difference.[/:2w9xvdf6]
wait....so you are saying that youcan have a linker version of 6.0 and still have it be a VB5 file? _________________ -MrU
Last edited by MrUnleaded on Mon Aug 02, 2004 3:24 pm; edited 1 time in total
|
|
Back to top |
|
|
|
sarge Moderator
Joined: 24 Sep 2002 Posts: 194
|
Posted: Mon Oct 14, 2002 4:36 pm
Post subject: Versions
|
|
I think there may be some confusion between the compiler version, the linker version and the interpreter version. Perhaps the appropriate posts should be more specific about which of these items are under discussion. The versions of compiler, linker or interpreter need not match each other, (for example: a VB6 program has a signature of "VB5!") as it is obvious that only one of them could change without the others.
Sarge
|
|
Back to top |
|
|
|
MrUnleaded Site Admin
Joined: 21 Sep 2002 Posts: 385 Location: California
|
Posted: Mon Oct 14, 2002 5:04 pm
Post subject: Re: Versions
|
|
[="sarge":26hhvgje]I think there may be some confusion between the compiler version, the linker version and the interpreter version. Perhaps the appropriate posts should be more specific about which of these items are under discussion. The versions of compiler, linker or interpreter need not match each other, (for example: a VB6 program has a signature of "VB5!") as it is obvious that only one of them could change without the others.
Sarge[/:26hhvgje]
i see what you are saying sarge.....but i dont have VB5 and i am just trying to scrap up any differences i can to differentiate between the two...(VB5 vs VB6)
...and i have been assuming(from what ive seen) that the LinkerVersion=4.20 meant VB5 while LinkerVersion=6.0 meant VB6...
and if i understood Justin correctly this wont always work for me....
Last edited by MrUnleaded on Mon Aug 02, 2004 3:24 pm; edited 1 time in total
|
|
Back to top |
|
|
|
_aLfa_ Site Admin
Joined: 21 Sep 2002 Posts: 233 Location: Aveiro, Portugal
|
Posted: Mon Oct 14, 2002 7:40 pm
Post subject:
|
|
mru if u put the linker version = 6 in a vb executable it still works, without any probs
thats what justin said
if ur using that to diferenciate ur doing wrong, use the vbheader reference instead _________________ One thing only I know, and that is that I know nothing. (Socrates)
|
|
Back to top |
|
|
|
Anonymous New User
Joined: 10 Feb 2008 Posts: 0
|
Posted: Mon Oct 14, 2002 7:40 pm
Post subject:
|
|
Just give your LINK.EXE to someone who has VB5 and ask them to compile something.
Bisides that, Windows doesn't need the Linker-version to run the executable, so it's even possible that it is set to 0.0 (like I always do).
|
|
Back to top |
|
|
|
MrUnleaded Site Admin
Joined: 21 Sep 2002 Posts: 385 Location: California
|
Posted: Tue Oct 15, 2002 5:12 pm
Post subject:
|
|
[="_aLfa_":1aa36p7z]mru if u put the linker version = 6 in a vb executable it still works, without any probs
thats what justin said
if ur using that to diferenciate ur doing wrong, use the vbheader reference instead [/:1aa36p7z]
i wasnt changing any values...im saying that the default values are 4.2 for vb5 and 6.0 for vb6......how do i use the vbheader?
[="Justin Sane":1aa36p7z]Bisides that, Windows doesn't need the Linker-version to run the executable, so it's even possible that it is set to 0.0 (like I always do).[/:1aa36p7z]
oh i know
Last edited by MrUnleaded on Mon Aug 02, 2004 3:24 pm; edited 1 time in total
|
|
Back to top |
|
|
|
sarge Moderator
Joined: 24 Sep 2002 Posts: 194
|
Posted: Tue Oct 15, 2002 5:40 pm
Post subject: Which what?
|
|
Hmm, is your question:
"How can I tell if an exe is compiled in VB5/VB6" = You are asking is it specifically NOT a C++, Delphi, etc type file
----OR---
"How can I tell if and exe is compiled in VB5 vs VB6" = You are asking which version of VB it is
Would looking at the interpreter version do for both?
Sarge
|
|
Back to top |
|
|
|
_aLfa_ Site Admin
Joined: 21 Sep 2002 Posts: 233 Location: Aveiro, Portugal
|
Posted: Sun Aug 01, 2004 11:09 pm
Post subject:
|
|
Sorry for the late post, lol
Sarge, I was asking what is the best way to find out wich version of visual basic was used to compile some executable.
And preferably to find out wich version of virtual machine (I know there are diferent virtual machines, because of service packs, etc...)
P.S.: Some admin give me edit rights on this forum, so I can fix it _________________ One thing only I know, and that is that I know nothing. (Socrates)
|
|
Back to top |
|
|
|
MrUnleaded Site Admin
Joined: 21 Sep 2002 Posts: 385 Location: California
|
Posted: Mon Aug 02, 2004 3:25 pm
Post subject:
|
|
I fixed the page. i will check permissons....i guess sarge doesnt have edit rights either....thats weird...a moderator with no rights _________________ -MrU
|
|
Back to top |
|
|
|
_aLfa_ Site Admin
Joined: 21 Sep 2002 Posts: 233 Location: Aveiro, Portugal
|
Posted: Mon Aug 02, 2004 4:13 pm
Post subject:
|
|
hehe _________________ One thing only I know, and that is that I know nothing. (Socrates)
|
|
Back to top |
|
|
|
|
|