executable

Executable loads same dll as already loaded dll

依然范特西╮ 提交于 2019-12-11 02:55:40
问题 I'm about to start making major modification to my project and I just want to clarify something as I think my design maybe somewhat complicated. I have an executable that loads a dll, lets call this dll1, this then loads dll2. The executable also loads dll2. What I'm asking is do I have two instances of dll2's global and static member variables, does the second load of dll2 happen or can an execuable only ever load 1 of dll2 even if dll2 was loaded by a different dll? I know I should only

perl if( -e "windows with space path){}

故事扮演 提交于 2019-12-11 02:54:21
问题 I'm on Windows :-/ and in my script i've: $ENV{'Powmig Path'}powermt That give me: C:\Program\ Files\EMC\PowerPath\powermt if I do a if(-e $ENV{'Powmig Path'}powermt) it doesn't work. I have try to change my path with some substitution \ / I have also try to add more double quote but nothing seems to work :-( Exemple: #!/usr/bin/perl use strict; use warnings; use File::Spec; if($^O =~ m/^MSWin32$/){ my $tmp = File::Spec->catdir($ENV{'Powmig Path'}, "powermt"); if(-e "\"$tmp\""){ print

How to distribute Java-based software?

做~自己de王妃 提交于 2019-12-11 02:23:09
问题 Now, don't get me wrong, I am a very competent programmer, but when I program, I typically develop things for the web using scripting languages like JavaScript, PHP, Python, SQL, etc. If I want to develop Java software (I am relatively experienced in Java), how do I distribute it? Is there any good way to package up Java software in a nice little executable, send it out, and have it run? Alternatively, is there any good way to package up Java in some sort of installer, and send it out to be

Why would changing a structure size, change the size of an executable?

泄露秘密 提交于 2019-12-11 02:13:41
问题 Very strange issue I'm working to debug, currently at a loss so I wanted to see if anyone had any thoughts/ideas. There's a define in one of the char drivers in my code base (this is one of many drivers within a uCLinux distribution): #define MAX_BUFSIZE 500 When I build like this I see the output package size: -rw-rw-r-- 1 mike users 1720620 Jan 16 11:00 gcl-kernel.pkg When I change the define to 1000 and rebuild: #define MAX_BUFSIZE 1000 -rw-rw-r-- 1 mike users 2359596 Jan 16 11:17 gcl

how to run a jar file on the ubuntu 14.04 without stopping when i stopped the putty?

♀尐吖头ヾ 提交于 2019-12-11 01:37:45
问题 I am using ubuntu 14.04 I am running a jar file which should be collection a large amount of data for a few days. I am running the jar file thought this command and it works fine. java -jar xxx.jar However when i close the putty, the process stopped. Is there a way for a jar file to run even when i close the putty? 回答1: You can use nohup to run the jar(any process) in background. Use the following command in the putty session : nohup java -jar xxx.jar & 回答2: You need the nohup command. This

How to add/remove x86 instruction in linux executables without spoiling the alignment

徘徊边缘 提交于 2019-12-11 01:25:37
问题 I'm new to binary and assembly, and I'm curious about how to directly edit binary executables. I tried to remove an instruction from a binary file (according to disassembled instructions provided by objdump ), but after doing that the "executable" seems no longer in an executable format (segmentation fault when running; gdb cannot recognize). I heard that this is due to instruction alignment issue. (Is it?) So, is it possible to add/remove single x86 instructions directly in linux executables

Pyinstaller EXE's __file__ refers to a .py file

↘锁芯ラ 提交于 2019-12-11 00:31:50
问题 Situation: My Python script has a line of code that copies itself to another directory shutil.copyfile(os.path.abspath(__file__), newPath) Problem: The script is then compiled into an EXE and ran. The error given is as follows: FileNotFoundError: No such file or Directory: "C:\Path\To\EXE\script.py" As you can see, the EXE is looking for the .py version of itself (i.e. uncompiled version) Question: Is there another Python command that can still let the executable find itself and not the .py

How to get dialog/message box working in executable R file

孤者浪人 提交于 2019-12-11 00:08:31
问题 I have an executable R file. All of the code works as expected, except for the function winDialog(), which works through RStudio, but not when the file is run through double clicking. The code in question is this: winDialog("ok", paste0("The checks have been completed in ", round(as.numeric(time.taken), digits = 2), " minutes.")) "time.taken" exists as a variable, so that's not the problem. Is there a different function that would work? Edit: My question is similar to this one: gWidgets GUI

How to create an executable (a file that starts the program on double-click like an .exe) in JAVA with Eclipse?

蹲街弑〆低调 提交于 2019-12-11 00:00:58
问题 I've created a program in java and now I want to create an executable from it. I'm new to java, I don't know if it should be a .exe . I'we exported my project to a .jar file, but when I double-click it it opens "open with" window. I want to export my project to a file that runs my program on double-click. Is there any solution? 回答1: Export --> Java --> Runnable Jar file --> Specify the class with static main method to run. Double click on the Jar file to run.. Thanks... 回答2: Java compiliation

How do I launch an EXE from Flash SWF using ActionScript?

我们两清 提交于 2019-12-10 20:12:13
问题 I want my Flash SWF to open an external EXE from the native operating system and I have tried: protected function LaunchExe():void { flash.system.fscommand("exec","Test.exe"); } But nothing happens. Am I doing something wrong with this command or do I need to something entirely differently? 回答1: It works only from within a projector file (executable Flash), and if you are running it like that, the application you are trying to launch should be in a subdirectory called fscommand . From Adobe: