executable

15 Python scripts into one executable?

只谈情不闲聊 提交于 2019-11-29 07:22:33
Ive been tinkering around all day with solutions from here and here: How would I combine multiple .py files into one .exe with Py2Exe Packaging multiple scripts in PyInstaller but Its not quite working the way I thought it might. I have a program that Ive been working on for the last 6 months and I just sourced out one of its features to another developer who did his work in Python. What I would like to do is use his scripts without making the user have to download and install python. The problem as I see it is that 1 python script calls the other 14 python scripts for various tasks. So what I

Not a valid Win32 application

旧城冷巷雨未停 提交于 2019-11-29 04:19:00
I have a project I have built in Visual Studio 2010 on a Windows 7 machine. It compiles and runs without a problem. When I place the application on a XP machine with .NET 4 it does not run with the error "is not a valid Win32 application" I tried everything here with no luck: http://blogs.msdn.com/b/dsvc/archive/2009/06/19/troubleshooting-not-a-valid-win32-application-error-at-the-startup.aspx I have no idea what is wrong. Any ideas? Thanks FYI: bindump: Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file TimeKeeper.exe PE

Launching an executable from a website?

不羁的心 提交于 2019-11-29 04:07:53
问题 We're developing a site that will only run on the intranet, and computers with access to this intranet will have this executable installed. We can't have any "Would you like to open [filename].exe?" prompts. Click a link and the program begins running. I realize that giving websites the ability to run executables on the client machine is very, very bad, but management refuses to budge on this. Machines will have Windows (XP or up) with Firefox 3. 回答1: We're developing a site that will only

Using dlopen() on an executable

為{幸葍}努か 提交于 2019-11-29 03:42:01
I need to call a function from another program. If the other program were a library, I could simply use dlopen and dlsym to get a handle to the function. Unfortunately, the other program is a Unix Executable, and building it as a library is not an option. Trying dlopen() on the executable gives this error message: dlopen([...]/testprogram, 1): no suitable image found. Did find: [...]/testprogram: can't map This isn't surprising, as dlopen is meant for use with libraries, not executables. Is there any way to get dlopen and dlsym to work with executables? If not, is there an alternative way of

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

让人想犯罪 __ 提交于 2019-11-29 02:58:17
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? Nope, Visual Studio's project model is rigidly built around the assumption that "one project generates one output". If you need two executables, you have to create two projects. You can keep them in the same solution to make things easier for yourself, but they have to be separate projects. Edit Ok, as other answers have pointed out, it can of course be done, if you're desperate. You can add a custom build step, which does anything you

How to convert a .java or a .jar file into a Linux executable file ( without a .jar extension, which means it's not a .jar file )

若如初见. 提交于 2019-11-29 02:43:07
I have been searching for many similar posts about this but I still can't find my answer. I want to convert a .java program into a Linux executable file, without the .jar extension. How can I do it? I am trying to use Launch4j java wrapper, JWrapper, IzPack, making a .sh, making a .bat, running it using java -jar myFile.jar etc. but none of them worked. Some procedures are complicated and difficult to debug. Is there any straightforward way to convert a .java file or .jar file into a Linux executable file? I need to pass this program as a Linux executable as a whole into another program that

Determining C executable name

浪尽此生 提交于 2019-11-29 02:09:54
问题 When we are compiling a C program the output is stored in a.out. How can we redirect the compiled output to another file? 回答1: Most C compilers provide the -o option for this, such as: gcc -o gentext gentext.c cc -o mainprog -Llib -lmymath firstbit.c secondbit.o xlc -o coredump coredump.c 回答2: -ofilename will make filename instead of a.out . 回答3: According to the manual: -o <file> Place the output into <file> 回答4: In Unix, where C originated from, C programs are usually compiled module-by

How to prevent a Linux program from running more than once?

南笙酒味 提交于 2019-11-29 01:34:38
What is the best way to prevent a Linux program/daemon from being executed more than once at a given time? The most common way is to create a PID file: define a location where the file will go (inside /var/run is common). On successful startup, you'll write your PID to this file. When deciding whether to start up, read the file and check to make sure that the referenced process doesn't exist (or if it does, that it's not an instance of your daemon: on Linux, you can look at /proc/$PID/exe ). On shutdown, you may remove the file but it's not strictly necessary. There are scripts to help you do

How to get information about a Windows executable (.exe) using C++

∥☆過路亽.° 提交于 2019-11-29 00:13:24
I have to create a software that will scan several directories and extracts information about the executables found. I need to do two things: Determine if a given file is an executable ( .exe , .dll , and so on) - Checking the extension is probably not good enough. Get the information about this executable (the company name , the product name , and so on). I never did this before and thus am not aware if there is a Windows API (or lightweight C/C++ library) to do that or if it is even possible. I guess it is, because explorer.exe does it. Do you guys know anything that could point me in the

How to setup HtmlUnit in an Eclipse project?

筅森魡賤 提交于 2019-11-28 23:55:27
My project includes htmlunit jars and downloads some pages content. Executable jar (which includes libs, funct. of eclipse export) thereof, however, works only on the machine on which I created it (on different it doesn't execute). EDIT: It doesn't execute as it doesn't show "Starting Headless Browser" MessageBox upon startup. I used Eclipse Indigo: File > Export > Runnable jar > package required libratries into generated jar Help, gods: import java.io.*; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit