executable

Executable directory where application is running from?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 12:09:40
I need to get the path (not the executable) where my application is running from: System.AppDomain.CurrentDomain.BaseDirectory() When I run the above statement with & "/images/image.jpg" on my local machine it works fine but when I install the application on another machine it says it cannot find the file and there is a lot of extra path information some. I just need the directory of where the app is running. I am coding in VB.NET with Visual Studio 2008. Thanks! Dim strPath As String = System.IO.Path.GetDirectoryName( _ System.Reflection.Assembly.GetExecutingAssembly().CodeBase) Taken from

Creating executable files in Linux

被刻印的时光 ゝ 提交于 2019-11-27 11:39:47
One thing I plan to be doing is writing (painfully simple) Perl scripts, and I'd like to be able to run them without explicitly calling Perl from the terminal. I appreciate that, to do this, I need to grant them execute permissions. Doing this with chmod is easy enough, but it also seems like a slightly laborious extra step. What I would like is one of two things: Firstly, is there a way to set the execute flag when saving a file? Currently I'm experimenting with gedit and geany, but would be willing to switch to a similarly- (or better-) featured editor if it had this capability. Failing that

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

放肆的年华 提交于 2019-11-27 11:36:46
问题 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 | 18.0 KB Date Modified | 6/16/2009 8:23 PM Language | How do I change these properties? (And on a side note, is there a way to change the icon?) 回答1: If you are using C/Win32 you can add something like this to your project encapsulated in a *.rc (resource) file: VS_VERSION_INFO VERSIONINFO

Packaging Java apps for the Windows/Linux desktop

我与影子孤独终老i 提交于 2019-11-27 10:30:00
I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive interface that looks like that belonging to any other app on your desktop. However, I feel that packaging an application is still an issue. OS X natively provides an easy mechanism for wrapping Java apps in native application bundles, but producing an app for Windows/Linux that doesn't require the user to run an ugly batch file or click on a .jar is

build a .exe for Windows from a python 3 script importing theano with pyinstaller

怎甘沉沦 提交于 2019-11-27 09:50:48
edit September, 2, 2017, 1pm I eventually managed to build a .exe with pyinstaller after many episodes. Unfortunately I failed to deal with the ‘theano’ module (that is required in my case by the ‘pymc3’ module) and I had to modify the .py files and give up part of the application. My description below has two aims: first it may help; second could anyone help me building a .exe for windows 7+, with the ‘theano’ module ? reminder: My python 3 script opens a simple GUI made with Qt Designer in a ‘.ui’ file and imports pyqtgraph (with pyqt5), pymc3 (and thus theano that is required by pymc3),

Adding multiple executables in CMake

自作多情 提交于 2019-11-27 09:10:57
问题 My code in a C++ project is organised as follows I have several .cpp and .h files which contains my classes I have several .cxx files which have to be compiled against the .cpp files and some external libraries. Now, each of the .cxx files have a main() method, so I need to add a different executable for each of these files having the same name as the file. Also, these .cxx files might not get linked to the same external libraries. I want to write this build in CMake, in which I am kind of a

Why does a binary of one OS (Windows) does not run in other ( Linux) for same underlying architecture? [closed]

只愿长相守 提交于 2019-11-27 08:31:04
问题 It may be a trivial question but I have hard time to explain to my little brother that a Windows binary will not run in another different OS like Linux even when both the OS are running in the same machine. If the binaries (opcodes) have to be same to execute in the same underlying architecture ( say Intel 32-bit), what are the differences between the binaries of Windows and Linux ( or even Ubuntu and RadHat Linux)? Are there any runtime modification of the binaries at instruction level

How to make a Python script an executable program

≡放荡痞女 提交于 2019-11-27 08:27:33
问题 To be clear, not just "run python scripts" But to make my python script a "executable" or "callable" program that can be used in other programming languages or platforms. More like a API maybe. The thing is I implemented several algorithms in java and they're supported by numpy and spipy, but others want to call my python program in their java program. Then the numpy and spipy are problems. They can't be in java and jython... Is there a solution that I can make this an executable program that

Why an executable program for a specific CPU does not work on Linux and Windows?

微笑、不失礼 提交于 2019-11-27 08:06:25
An executable problem like exe does not work on Linux (without wine). When compiling source code compiler produce object code which is specific to a particular cpu architecture. But same application does not work with on an another OS with same CPU. I know code may include instructions to specific to the OS that will prevent executable running. But what about a simple program 2+2 ? Confusing part is what the hell that machine code prevents working. Machine code specific to cpu right? If we strip executable file format could we see same machine code (like 2 + 2) for both operating systems? One

“No such file or directory” but it exists

自闭症网瘾萝莉.ら 提交于 2019-11-27 06:51:34
I simply want to run an executable from the command line, ./arm-mingw32ce-g++ , but then I get the error message, bash: ./arm-mingw32ce-g++: No such file or directory I'm running Ubuntu Linux 10.10. ls -l lists -rwxr-xr-x 1 root root 433308 2010-10-16 21:32 arm-mingw32ce-g++ Using sudo ( sudo ./arm-mingw32ce-g++ ) gives sudo: unable to execute ./arm-mingw32ce-g++: No such file or directory I have no idea why the OS can't even see the file when it's there. Any thoughts? This error can mean that ./arm-mingw32ce-g++ doesn't exist (but it does), or that it exists and is a dynamically linked