How to write and executable Windows .exe manually (machine code with Hex editor)?

There’s a quite minimalistic but fully working (on Win7, too) exe on corkami/wiki/PE101, every byte of it is explained in the nice graphic. You can type it all by hand in a hex editor, but the paddings may make that a little tedious. As for the history, yes someone at Microsoft invented the exe format … Read more

The program can’t start because cygwin1.dll is missing… in Eclipse CDT

This error message means that Windows isn’t able to find “cygwin1.dll”. The Programs that the Cygwin gcc create depend on this DLL. The file is part of cygwin , so most likely it’s located in C:\cygwin\bin. To fix the problem all you have to do is add C:\cygwin\bin (or the location where cygwin1.dll can be … Read more

How can I convert a .jar to an .exe?

Launch4j works on both Windows and Linux/Mac. But if you’re running Linux/Mac, there is a way to embed your jar into a shell script that performs the autolaunch for you, so you have only one runnable file: exestub.sh: #!/bin/sh MYSELF=`which “$0” 2>/dev/null` [ $? -gt 0 -a -f “$0″ ] && MYSELF=”./$0″ JAVA_OPT=”” PROG_OPT=”” # … Read more

How can I find out if an .EXE has Command-Line Options?

The easiest way would be to use use ProcessExplorer but it would still require some searching. Make sure your exe is running and open ProcessExplorer. In ProcessExplorer find the name of your binary file and double click it to show properties. Click the Strings tab. Search down the list of string found in the binary … Read more

How do I programmatically get the version of a DLL or EXE file?

You would use the GetFileVersionInfo API. See Using Version Information on the MSDN site. Sample: DWORD verHandle = 0; UINT size = 0; LPBYTE lpBuffer = NULL; DWORD verSize = GetFileVersionInfoSize( szVersionFile, &verHandle); if (verSize != NULL) { LPSTR verData = new char[verSize]; if (GetFileVersionInfo( szVersionFile, verHandle, verSize, verData)) { if (VerQueryValue(verData,”\\”,(VOID FAR* FAR*)&lpBuffer,&size)) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)