Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / way to convert 32bit exe's to binary

Author
Message
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 23rd Oct 2005 05:14
is there anyway to convert a 32bit windows .exe to pure binary I would like to make a 32bit os using mingw and codeblocks(its an ide) but i dont want to do stuff the stupid way with djgpp mingw is much better
if there is any utility or work around for this could someone please tell me

n00bs will be shot on spot...
It only gets more logical from here(sigh)
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 23rd Oct 2005 05:47
Probably not, you have to compile straight to a flat executable. Just extracting the code would probably kill stuff. What is it you want to do with mingw that you can't do with djgpp??

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 23rd Oct 2005 06:07
its not what i cant do its what i cant use(a real ide instead of a dos shell or batch file) and really djgpp really really annoys me with all its memory errors and crap

plus no long file name support, only 8.3 which gets annoying

If at first you don't succeed call it version 1.0
the above post and signature has been made with 100% recycled binary digits.
*stolen from other posts*
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 23rd Oct 2005 13:00
I thought DJGPP and MingW where command-line compatible (just redirect your IDE to it like if it were mingw).

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 23rd Oct 2005 21:07 Edited at: 23rd Oct 2005 22:37
hmmmm good point thanks for that tip i will try that, and maybe try to get it to use a linker script so it would link as flat binary

edit:
appearntly there are some differences because just changing paths and names didnt work i had to go to advanced options(which i just noticed was even there) which let you choose how the command line was sorted

edit2:
hmmm now i just need to figure out how to get mingw to compile non-pe as mingw's included ld works to compile flat binary so if i add an extra option then it will do that but the compiler compiles to pe

edit3:
after about an hour i got it working
and compiling to flat binary along with windows saying its no a valid application(which means its binary) now i just got to fix a way to use partcopy the way i want

If at first you don't succeed call it version 1.0
the above post and signature has been made with 100% recycled binary digits.
*stolen from other posts*
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 24th Oct 2005 04:06
partcopy? What's that? And if you put a .com extension on a flat binary executable it should run (and probably soft-crash).

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines

Login to post a reply

Server time is: 2024-11-16 00:25:20
Your offset time is: 2024-11-16 00:25:20