I have the following code that executes a C++ program and outputs it:
<html>
<head>
<title>C++</title>
</head>
<body>
<div><?php
system("app.exe", $out);
echo rtrim($out, "0");
?></div>
</body>
</html>
How can I make it so that you can pass arguments to the c++ program, say like this...
If this was the c...
Hi All,
I am using XCode for developing a C++ Console Application. After compiling XCode generates the Unix Executable File, which run on Mac perfectly. But doesn't work on windows. I have tried changing the active architecture as well from x86_64 to i386 but no luck.
Is it possible anyway to generate executable like Borland C, or Turb...
Hello
I am trying to find a way to register the files with extension .pl as executables.
I spent some time on the web looking for a solution, but I couldn't find anything.
What I can do:
I made a script, let's call it myscript.pl
I can run it like this :
perl myscript.pl [my script parameters]
Now since the file is associated with pe...
I wrote a number of bash scripts that greatly simplify the routine, but very tedious, file manipulation that my group does.
Unfortunately, most in my group cannot open a terminal, let alone run scripts with complex arguments.
Is there a way to nicely package a bash script into an executable (that accepts arguments) that runs nicely on ...
I want to write a program that will run on a specific web server and periodically browse to a page that is being hosted by that same web server (IIS) to check for certain text. If a certain condition was found to be true, it would initiate a reboot of the server (the one it is residing on).
I can handle the checking the webpage part, th...
I currently have a single solution with a single project and this generates executable A.EXE. The project consists of dozens of C# source files, forms, etc.
I now need to generate executables B.EXE and C.EXE as well. B.EXE will use about 95% of the code base for A.EXE (i.e. a subset of functionality). C.EXE will use about 80% of the cod...
What is the best way to prevent a Linux program/daemon from being executed more than once at a given time?
...
In order to run my AppleScript program I have to open it up and select "run." I want the program to just run when I click on it. I tried to compile it, but it didn't seem to make a difference or create a new file.
...
What steps does MS-DOS take to load a COM or EXE file into memory? Are there still references online as to how this happens? The best I can think of is possibly referring to dosbox source.
...
Been trying to compile this IronPython program into a working .exe for the past 3-4 hours with no luck.
I'm using the pyc.py that came with "IronPython 2.6 for .NET 4.0"
D:\IronTestCompile>ipy pyc.py file1.py file2.py /out:Program /main:program.py /target:exe
The program compiles out to Program.dll & Program.exe but the Program.exe ca...
The following code doesn't work as intended but hopefully illustrates my attempt:
long foo (int a, int b) {
return a + b;
}
void call_foo_from_stack (void) {
/* reserve space on the stack to store foo's code */
char code[sizeof(*foo)];
/* have a pointer to the beginning of the code */
long (*fooptr)(int, int) = (long (*)(int...
Is ist possible to create a executable .exe file from a PowerShell Script?
...
Hi
I have to send a weekly email to subscribers. The content of this email comes from a database. I understand I have to set up a scheduled task on the server (I have to ask for this as I work remotely and don't have admin rights to do it). I did this in the past, where the email is sent by a .net page that gets called by the scheduled ...
I'm trying to create an auto-updating app using Winforms. I can't use click-once or the updater block because the app needs to run on Mono also.
Once I download the new exe file from a webservice, is it possible to unlock the running exe file, replace it, and restart the app?
...
I have a map file generated with microsoft visual studio. It contains a relatively big area named __NULL_IMPORT_DESCRIPTOR. What is this good for? It has something to do with linked dlls but I cannot figure out the exact purpose of it.
...
I'm in the process of writing a compiler that will be generating ELF executable files for the i386 platform.
However, I need a good reference for the file format (information on headers, relocations, etc.).
Is there such a reference?
...
I have the exe file of micromedia flash player. I am able to run this file from the .net application by using the following code
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("peopledisplay.exe");
//System.Diagnostics.Process.Start("iexplorer.exe", "peopledispla...
I want to make a dummy Win32 EXE file that is much larger than it should be. So by default a boiler plate Win32 EXE file is 80 KB. I want a 5 MB one for testing some other utilities.
The first idea is to add a resource, but as it turns out embedded resources are not the same as 5 MB of code when it comes to memory allocation. I am think...
I've created a C++ project in Eclipse and currently it builds an executable called file.exe but I want to change this to "file".
How do I do this?
Thanks.
...
I'm porting a Ruby program to Windows, and I really need a super-simple package - something that user downloads, unzips, doubles clicks the obvious program file, and it's running. Without having to install JRuby, or even Java if it's possible.
Or possibly downloads, runs installer, confirms a few silly questions, and selects obvious pro...