executable

what's in a .exe file?

So a .exe file is a file that can be executed by windows, but what exactly does it contain? Assembly language that's processor specific? Or some sort of intermediate statement that's recognized by windows which turns it into assembly for a specific processor? What exactly does windows do with the file when it "executes" it? ...

Running an executable with parameters in C++ and get the return value;

How do you run an executable with parameters passed on it from a C++ program and how do you get the return value from it? Something like this: c:\myprogram.exe -v ...

How to create an "empty" space in an executable at a definite address (gcc,linux)?

What I essentially want to do is have another program write data into this "empty space" for the executable to "work" on I thought of appending a signature to the application and then writing the data, searching for it later, but that doesn't quite sound right... Now, other important thing ... I know it should be possible to create...

Not able to run my jar file on Windows

I have these files board.class and x4.class (x4.class has main() method). To jar these files, I wrote jar cf x4.jar *.class and got a x4.jar file. I copied this x4.jar file to my Desktop (on windows Vista) and double-clicked it. I am getting this error: Failed to load Main-Class manifest attribute from C:\Users\eSKay\Desktop...

Get path of executable

I know this question has been asked before but I still haven't seen a satisfactory answer, or a definitive "no, this cannot be done", so I'll ask again! All I want to do is get the path to the currently running executable, either as an absolute path or relative to where the executable is invoked from, in a platform-independent fashion. ...

Strip Executable

I've heard that strip is a program that makes an executable weight less. I've tried to turn it on from my compiler (for python) but when it comes to run strip I just see "Strip is not recognized as a command or as a program" error from the Command Promp. So where do I get the executable of strip? ...

Wrapping cf.net application to C++ project

Hi, I would like to wrap cf.net project (exe) to c++ project(exe) and communicate via internal calls (main exe to cf.net exe, communication to protection methods, written in c++). Idea is to make better protection against decompiling(+ protection). Any idea how to do that? any sample code of wrapping executable? ...

[ASM] JMP to absolute address (op codes)

I'm trying to code a exe packer/protector as a way of learning more about assembler, c++, and how PE files work. I've currently got it working so the section containing the EP is XORed with a key and a new section is created that contains my decryption code. Everything works out great except when I try and JMP to the original EP after de...

Bundle additional executables with py2exe

I have a python script that calls out to two Sysinternals tools (sigcheck and accesschk). Is there a way I can bundle these executables into a py2exe so that subprocess.Popen can see it when it runs? Full explanation: My script is made to execute over a network share (S:\share\my_script.exe) and it makes hundreds of calls to sigcheck ...

Creating an executable jar file from a clojure project?

I have a clojure project that uses the slick 2d game engine that I am trying to run as an executable jar file. I created the project in both Netbeans and Eclipse and I have had no luck exporting them into an executable format. It keeps giving the error could not find the main class, followed by giving my main class. I have tried editing ...

Does code in header file increases binary size?

Hello there Consider this: class Foo{ void func1(){ /*func1 code*/ } void func2(){ /*func2 code*/ } }; Case 1: class Foo in Foo.h Case 2: class Foo nicely seperated among Foo.h and Foo.cpp Various other cpp files include Foo.h My question is...Will Case 1 lead to a bigger binary...

Writing a native language compiler.

I've to implement my custom native-compiled Windows programming language. Is there an easier way then translating it to ASM, or translating it to C/C++ and then use a C/C++ compiler? Is there any SDK or something? Thank you. ...

Run exe from webpage

We have an internal page that I want to use to run an executable that updates some files on the server. In other words, rather than logging in to the server every time I need to manually run this executable, I would like to run it from the browser. The executable is self-contained on the server and does not interact with the user. Here ...

How exactly do executables work?

I know that executables contain instructions, but what exactly are these instructions? If I want to call the MessageBox API function for example, what does the instruction look like? Thanks. ...

how to reduce size of exe using py2exe

I developed a small program using python and wxwidgets. It is a very simple program that uses only a mini frame to display some information when needed, and the rest of the time it shows nothing, only an icon in the taskbar. When I build the exe using py2exe (single file exe mode, optimized), I get a 6Mo size file! I tried not includin...

Is there any way to make a dual executable file for Mac/Windows?

I'm looking for a way to make a dual executable file for Windows/Mac. That is, I can execute the file in either OS and it would run some piece of code that I want for that OS. This code can be either a script or (preferably) natively compiled code, but it needs to run on the vanilla OS without needing any extra tools or libraries insta...

How can I determine the location of disassembled code within an executable?

Hi all, I've got an executable file (C++, i386, compiled under MacOS/X Tiger, if it matters) that contains a bug. The fix for the bug is straightforward -- there's a place in the code where it calls fork() and it shouldn't. Because the fix is simple, and because recompiling the executable from scratch would be difficult at this point ...

What is the bss section of an image?

I am trying to understand PE file formats and there are many sections. What is the bss section? Is that fluid and data written to that section can be overwritten anytime? Is that a storage location in memory of the loaded binary? ...

Getting the absolute path of the executable, using C#?

Have a look at this pseudocode: string exe_path = system.get_exe_path() print "This executable is located in " + exe_path If I build the above program and place the executable in C:/meow/, It would print out This executable is located in C:/meow/ each time it is run, regardless of the current working directory. How could I easily acc...

How to run a C program in DOS prompt

I want to run a C program in DOS prompt. Is it possible? ...