Questions tagged [executable]

An executable is a binary file that can be executed by the operating system.

An executable is a binary file that can be executed by the operating system.

3697 questions
30
votes
6 answers

Set an exe icon for my program

I'm using Microsoft Visual Studio 2008 and I'm trying to set an exe icon for my program. I've searched this site and found this: How do I set the icon for my application in visual studio 2008? But I can't find this "Resource View". I've looked…
Danny
  • 313
  • 1
  • 3
  • 4
29
votes
8 answers

How to create an executable .exe file from a .m file

I was wondering if there is a way to create a '.exe' file from ' .m' file in MATLAB, such that it can be run in machine which does not have MATLAB (like it can be done in C, C++). I know writing a MATLAB function is one way, but I am not sure if it…
AP.
  • 750
  • 3
  • 12
  • 19
29
votes
4 answers

How to run external executable using Python?

I have an external executable file which I am trying to run from a Python script. CMD executable runs but without generating output. Probably it exit before output can be generated. Any suggestion about how to delay exit until outputs are…
Ibe
  • 5,615
  • 7
  • 32
  • 45
28
votes
7 answers

How can I create an executable .exe PE file manually?

All texts on how to create a compiler stop after explaining lexers and parsers. They don't explain how to create the machine code. I want to understand the end-to-end process. Currently what I understand is that, the Windows exe file formats are…
28
votes
16 answers

What Can I Do To Reduce My Executable's Size (Delphi)?

I release a single executable (.EXE) for a desktop program using Delphi 2009. I have no external DLLs or resources that I need for the program to run. I use two components: LMD Innovative's ELPack and Sergey Tkachenko's TRichView that are compiled…
lkessler
  • 19,819
  • 36
  • 132
  • 203
28
votes
6 answers

How to change an executable's properties? (Windows)

When I create a .exe, I can right click it and go to properties->details. Then I get a list like: File Description | Type | Application File Version | Product Name | Product Version | Copyright | Size |…
user98188
27
votes
5 answers

Is a Linux executable "compatible" with OS X?

If you compile a program in say, C, on a Linux based platform, then port it to use the MacOS libraries, will it work? Is the core machine-code that comes from a compiler compatible on both Mac and Linux? The reason I ask this is because both are…
bgroenks
  • 1,859
  • 5
  • 34
  • 63
27
votes
5 answers

How to implement readlink to find the path

Using the readlink function used as a solution to How do I find the location of the executable in C?, how would I get the path into a char array? Also, what do the variables buf and bufsize represent and how do I initialize them? EDIT: I am trying…
a sandwhich
  • 4,352
  • 12
  • 41
  • 62
27
votes
7 answers

Visual Studio: how to create a project that would compile 2 exe files?

So I have main.cpp and main2.cpp with int main in each. I want to get 2 exes out of it. Is it possible and what would be instruction to create such project?
Rella
  • 65,003
  • 109
  • 363
  • 636
27
votes
1 answer

Get assembly executable directory

I have two applications, e.g. App1 and App2. When running normally, App1 will show its assembly executable location. But when I call App1 from App2, it returns App2's startup location. So, how do I get App1's startup path when I call App1 from App2?
TrungNV
  • 269
  • 1
  • 4
  • 7
27
votes
4 answers

How do I run an executable using Lua?

I have an executable I want to run using Lua ... how do I do this? Can't seem to find any documentation anywhere about this.
Brian T Hannan
  • 3,925
  • 18
  • 56
  • 96
27
votes
6 answers

How to get source code of a Windows executable?

I've got some old Windows executable files. How can I edit them with Visual Studio 2010? What are the ways to see an exe's source code?
Ali Demirci
  • 5,302
  • 7
  • 39
  • 66
27
votes
5 answers

Converting HTML + JavaScript to an exe

There is actually a topic asking a very similar thing, however the information there is either out of date (broken links, discontinued solutions) or not suitable for my needs. I have a showcase for my graduation wherein we have the opportunity to…
Eilidh
  • 1,354
  • 5
  • 21
  • 43
25
votes
4 answers

How to reduce the size of executable produced by MinGW g++ compiler?

I have a trivial "Hello world" C++ program that is compiled to 500kB executable by MinGW g++ compiler under Win XP. Some say that is caused by iostream library and static link of libstdc++.dll. Using -s linker option helped a bit (reducing 50%…
Jan Turoň
  • 31,451
  • 23
  • 125
  • 169
25
votes
4 answers

Equivalent of double-clickable .sh and .bat on Mac?

I am distributing a Java program where I want a double-clickable file to run java -cp MyProgram.jar;MyLib.jar my.program.Main On Windows I simply distribute a .bat file, for *nix an executable .sh file. Problem is, double-clicking the .sh file just…
Epaga
  • 38,231
  • 58
  • 157
  • 245