exe

C++/CLI: Use LoadLibrary + GetProcAddress with an exe

江枫思渺然 提交于 2019-12-01 07:33:06
Up until now, I had some sort of plugin mechanism in which I loaded dlls using LoadLibrary and GetProcAddress to create a concrete object and return a common interface. This worked fine until I decided that one of the dlls should be an exe. LoadLibrary's documentation says that it can be used for exe's as well, so I gave it a shot. The exe gets loaded without errors, as GetProcAddress. But when I try to call my concrete object's constructor, I get an access violation. I thought this would happen because loading an exe does not load all the dlls it uses. So I tried loading them using

Execute .exe file embedded in Python script

我与影子孤独终老i 提交于 2019-12-01 06:31:46
How can I load an exe file—stored as a base64 encoded string—into memory and execute it without writing it to disk? The point being, to put some kind of control/password/serial system in place and compile it with py2exe. Then I could execute that embedded file when ever I want in my code. All of the mechanisms Python has for executing a child process require a filename. And so does the underlying CreateProcess function in the Win32 API, so there's not even an easy way around it by dropping down to that level. There is a way to do this by dropping down to ZwCreateProcess / NtCreateProcess . If

Run a .exe with input parameters from PHP web page

情到浓时终转凉″ 提交于 2019-12-01 05:47:45
问题 I'm currently trying to get an executable to run from within a PHP web page (currently using exec() ). The program takes two arguments when run from the command line; I'm not sure what the best method would be to run it with PHP. In particular, the .exe can be run from the command line using the syntax: my_program.exe input_file_name.txt / output_file_name.txt The program processes the data in the input file and puts the processed into into the output file. This all works fine from the

How to run a C# .exe file on many computers?

柔情痞子 提交于 2019-12-01 05:24:33
I have Microsoft Visual Studio 2010 installed in my computer. I wrote a program using C# & it created a .exe file in the Debug directory. When I double click on the .exe file, I can open it on my machine. But if I copy that .exe file and try to run it on another computer, (that doesn't have Microsoft Visual Studio ) it doesn't work. Can you please tell me how can I make a .exe file work on any computer? Or if you know a website that explains it. I have done this using Winzip long time ago and including all the library files alone with the .ext file. but don't remember how I did that anymore.

Method to determine if an exe file has been compressed with UPX

ε祈祈猫儿з 提交于 2019-12-01 05:04:17
Is there a method to determine if an exe file has been compressed with UPX? The function to determine if an exe file has been compressed is excellent except I found a problem with the code. If the function IsUPXCompressed is called then you try to run upx, upx can not save the file it modifies. There is something not sharing rights correctly in the function. I have tested this for several hours. If I do not call the method then UPX can write the files with no problem. You you call it then try to run UPX it will not save the file. UPX reports an IOException Permission denied error when trying

C++/CLI: Use LoadLibrary + GetProcAddress with an exe

家住魔仙堡 提交于 2019-12-01 04:24:40
问题 Up until now, I had some sort of plugin mechanism in which I loaded dlls using LoadLibrary and GetProcAddress to create a concrete object and return a common interface. This worked fine until I decided that one of the dlls should be an exe. LoadLibrary's documentation says that it can be used for exe's as well, so I gave it a shot. The exe gets loaded without errors, as GetProcAddress. But when I try to call my concrete object's constructor, I get an access violation. I thought this would

How to create a .exe file in netbeans?

此生再无相见时 提交于 2019-12-01 04:06:16
I've created a project in netbeans and I want it to be runnable in another computer without having the netbeans installed (just like a .exe in visual basic). I pressed F11 and I got a lib folder which has a .jar file on it. But then I don't know how to work it out, which one do I have to double click? Can anyone please guide me? If you created a java project, then the "other" computer should have the java runtime installed, in order for the jar to be executed there (java -jar your.jar) otherwise if you really want an .exe use one of the many jar2exe converters found on the almighty internet,

Determine if MSI/EXE supports certain flag/argument?

回眸只為那壹抹淺笑 提交于 2019-12-01 04:01:11
I'm creating an auto-updater that can run MSIs and EXEs. These MSIs/EXEs aren't my own. I'd like to use any unattended/silent install option if it exists. Is there some way to determine if an MSI/EXE has some sort of unattended install support and, if so, get the right argument so I can pass it to the file when I run it? I know, by default '/quiet' is the silent install option, but I'm also curious about EXEs and any MSIs that maybe have customized this option. This question - detect msi parameters for unattended install - is similar, but the links in the answer are broken and I can't figure

How to run a C# .exe file on many computers?

两盒软妹~` 提交于 2019-12-01 03:20:30
问题 I have Microsoft Visual Studio 2010 installed in my computer. I wrote a program using C# & it created a .exe file in the Debug directory. When I double click on the .exe file, I can open it on my machine. But if I copy that .exe file and try to run it on another computer, (that doesn't have Microsoft Visual Studio ) it doesn't work. Can you please tell me how can I make a .exe file work on any computer? Or if you know a website that explains it. I have done this using Winzip long time ago and

Method to determine if an exe file has been compressed with UPX

断了今生、忘了曾经 提交于 2019-12-01 02:17:55
问题 Is there a method to determine if an exe file has been compressed with UPX? The function to determine if an exe file has been compressed is excellent except I found a problem with the code. If the function IsUPXCompressed is called then you try to run upx, upx can not save the file it modifies. There is something not sharing rights correctly in the function. I have tested this for several hours. If I do not call the method then UPX can write the files with no problem. You you call it then try