exe

What is the minimum file size of a PE file (exe) on Windows? And the minimal memory allocation? [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-05 14:08:52
This question already has answers here : What is the smallest possible Windows (PE) executable? (2 answers) Closed 3 years ago . What is the minimum file size of a PE file (exe) on Windows? And the minimum memory allocation? I assembled (using MASM (ml.exe) and link.exe that come with VS 10) the following code: I can not leave out kernel32.lib and ExitProcess, if I do, the program crashes. ; Assmebly options .386 .MODEL FLAT, STDCALL option casemap:none ; Include Libs includelib kernel32.lib ; Imported symbols ExitProcess PROTO :Dword Sleep PROTO :Dword ; Code .CODE start: invoke Sleep, 10000

I want to make this prolog file a stand-alone EXE file

本秂侑毒 提交于 2019-12-05 12:52:27
I am new to prolog and I have written this code but I want to make this prolog file a stand-alone EXE file and I dont know how to go about it. I am using swi-prolog to consult the file. I need step by step tutorial on making this program executable using swi-prolog.I saved it as 'computer.pl' here is the code below. main :- identify. identify :- write('Welcome to Micro-Computer troubleshooting'), nl, write('Please do not forget to type all your answers with a period(.) in the end'), nl, retractall(known(_,_,_)), % clear stored information diagnosis(X), nl, write('The problem is: '), nl,

What is the correct way to launch slimerjs in casperjs (with an absolute path)?

戏子无情 提交于 2019-12-05 10:19:19
Well, i can launch slimerjs by specifying the path of the slimer.bat file : C:\bin\slimerjs\slimerjs.bat and then execute my file. But if i modify casperjs file (in bin\ ) and modify the default exec for slimer : 'env_varname': 'SLIMERJS_EXECUTABLE', 'default_exec' : 'C:\bin\slimerjs\slimerjs.bat' when i execute the casper command : casperjs --engine=slimerjs test.js It doesn't work, the path to slimerjs.bat seems to be ignored. I tried this too : https://github.com/laurentj/slimerjs/blob/master/BUILD.md But the slimerjs.exe alone isn't sufficient, i need to have application.ini and omni.ja in

adding icon to bundle using javapackager

老子叫甜甜 提交于 2019-12-05 09:56:45
i am using javapackager to create an exe installer with jre bundled using the command line. does anybody know how to add an icon and customise the installer using the command line. these are the commands that i use: javapackager -deploy -native -outdir packages -outfile myFile -srcdir documents -srcfiles Application.jar -appclass application.Main -name "Application" -title "Application Title" i have tried to add license="info" and some other commands As documented , use the option icon with the prefix -B to use a custom icon: -Bicon=app.ico or alternatively put the icon file at package/windows

See std::cout of .exe

青春壹個敷衍的年華 提交于 2019-12-05 09:48:27
I have a .exe file that I've compiled on windows. But when I run it from the command line I don't see any of the things my program outputs to std::cout or std::cerr. The program runs and continues to run even after the command line returns to the prompt (it's a GUI program and doesn't quit until I press the quit button). How can I see the output of my program? I'm using cmake to make a visual studio project which I then compile with msbuild. Harry Johnston The simplest approach is to rebuild the program as a console application. The option to link.exe needs to be /SUBSYSTEM:CONSOLE instead of

How do I bundle a JRE in my JAR, so that it can run on systems without Java?

﹥>﹥吖頭↗ 提交于 2019-12-05 08:27:41
I want to bundle a JRE inside my executable JAR, so that the exe can run on any system. I have tried Launch4j , but that approach requires me to ship both the JRE and the exe. As per my requirements, I should not use an installer to ship, nor extract/install the JRE on the client machine. How do I put a JRE inside a JAR and make use of it? You cannot put a JRE inside a JAR file. (Well you can ... but it won't help.) What you need to do is build and distribute an installer. The recommended way to create an installer is to use a commercial or open-source installer generator. (Google will help

MSCOMCTL.ocx missing Windows 10

夙愿已清 提交于 2019-12-05 07:29:15
I have some vb6 applications that i'm trying to move from Windows 7 to Windows 10. I have the .exe file, but when I tried to open it - it tells me that: C:\App_1\MSCOMCTL.OCX could not be loaded - Continue Loading Project? I searched for this file in C:\Windows\SysWow64 and found that the file is actually there as Type: ActiveX Control . Any reason why I'm still getting the error? Andre Oosthuizen The ocx control should be in your Syswow64 (if 64 bit pc) folder and not in the app folder, and it needs to be registered manually (common vb6 problem in Win7, 8 ,10). It seems you can see the file,

py2exe the following modules appear to be missing

☆樱花仙子☆ 提交于 2019-12-05 05:43:10
As the title says, when I'm trying to use py2exe to create a Windows executable file, I get this error: The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', 'OpenSSL.SSL', '_frozen_importlib', '_imp', '_scproxy', '_sysconfigdata', 'backports.ssl_match_hostname', 'builtins', 'certifi', 'charade.universaldetector', 'configparser', 'datrie', 'genshi.core', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookies', 'http.server', 'importlib.machinery', 'importlib.util', 'ipaddr', 'ipaddress', 'java', 'lzma', 'ndg.httpsclient.ssl_peer_verification

.NET: embed an EXE file into my project

爱⌒轻易说出口 提交于 2019-12-05 05:19:57
I know that is strange situation, but I need to embed an EXE file (or the assembly code) into my project, so it can be started only by the application (it can't create the EXE in the filesystem and start it)... Is it possible? Edit: It's not a .NET EXE. Anyway I added the Test.exe file as a resource to my project and I did this Dim exestr As Stream = Nothing Dim a As Assembly = Assembly.GetExecutingAssembly exestr = a.GetManifestResourceStream("Test.exe") I'm thinking create a RAM disk , write your exe file/s to it from your .NET resource file, and execute the file there. Nothing touches

How to know if a different exception is hidden behind a 80000003 breakpoint (WER dialog)

一世执手 提交于 2019-12-05 02:57:44
问题 My application, an executable, is crashing on a remote machine. I don't have access to that machine, so I requested a dump, generated through Task Manager. Using WinDbg, on executing the command !analyze -v , I can see the following text among many others EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 0000000000000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0 How can I know if it is responsible for the crash? If it is not, how do I