Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: j-lee00 on June 18, 2008, 03:15:18 pm

Title: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: j-lee00 on June 18, 2008, 03:15:18 pm
A simple question, how do i enlarge the exe file after compiling a c file?
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: thomas on June 18, 2008, 03:43:39 pm
You can use the enlarge tool (see attachment).

Open a DOS window and type enlarge yourprogram.exe. Alternatively, you can run the enlarge tool as a post-build step. To do that, add the command to your project build options.

[attachment deleted by admin]
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: MortenMacFly on June 18, 2008, 03:57:18 pm
That's pretty damn cool! 8) I can now convince my boss that I was really hard-working as the new version of my software just grows and grows... Sounds like good times to me...
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: MortenMacFly on June 18, 2008, 03:59:45 pm
I found out something other really interesting:
If you want to hide your enlargement of the application you can use upx (http://upx.sourceforge.net/) and do it like this:

First:
enlarge.exe yourapplication.exe
Second:
upx.exe yourapplication.exe

...works really stable for me.
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: Ceniza on June 18, 2008, 04:37:00 pm
Just what I've been looking for...

Is there a Linux port of it? Maybe it runs on WINE now that version 1.0 is out... or maybe I should just switch back to Windows...

I can't believe you guys didn't tell me about it before :(
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: thomas on June 18, 2008, 04:45:37 pm
I might open source it, although I'm not decided about the license yet :P

After all, it's the most useful tool of 2008.
Title: Re: A simple question, how do i enlarge the exe file after compiling a c file?
Post by: mandrav on June 18, 2008, 08:02:10 pm
Too bad it doesn't have its own sourceforge project. This way we could nominate it for "Best project" :lol: