Command 'x86_64-w64-mingw32-gcc' not found, but can be installed with:
64-bit exe: sudo apt install gcc-mingw-w64-x86-64
32-bit exe: sudo apt install gcc-mingw-w64-i686
| program Client; {$APPTYPE CONSOLE} | |
| uses | |
| Windows, SysUtils, IdTCPClient; | |
| var | |
| TcpClient: TIdTCPClient; | |
| S: string; | |
| begin |
| procedure RunProcessAndCaptureOutput(const CmdLine: string; Memo: TMemo; HideLinesCount: Integer = 0); | |
| var | |
| SecAttr: TSecurityAttributes; | |
| PipeR, PipeW: THandle; | |
| StartupInfo: TStartupInfo; | |
| ProcessInfo: TProcessInformation; | |
| Buffer: packed array[0..4096-1] of AnsiChar; | |
| Count: Cardinal; | |
| S, Leftover: AnsiString; | |
| i, P: Cardinal; |
| type | |
| TRefCountObject = class(TObject) | |
| protected | |
| ExtraReferencesCount: Integer; { Default 0 } | |
| public | |
| procedure Free; | |
| function GetReference: TRefCountObject; | |
| end; | |
| procedure TRefCountObject.Free; |
Command 'x86_64-w64-mingw32-gcc' not found, but can be installed with:
64-bit exe: sudo apt install gcc-mingw-w64-x86-64
32-bit exe: sudo apt install gcc-mingw-w64-i686
| using System; | |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| public class RubberExample : Form { | |
| bool mouseDown = false; | |
| Point mouseDownPoint = Point.Empty; | |
| Point mousePoint = Point.Empty; |
| Nem opsætning af simpel/slank MariaDB test-server på Windows | |
| ------------------------------------------------------------ | |
| Hent seneste stable MariaDB til Windows | |
| (ZIP-fil uden debug-symbols, ikke MSI) | |
| fra https://downloads.mariadb.org/ | |
| Der oprettes en valgfri rod-mappe |
| // x86_64-w64-mingw32-gcc -Wall -shared -O2 -s -o helper.dll helper.c | |
| #include <stdio.h> | |
| #include <string.h> | |
| __declspec(dllexport) __stdcall int proc_sql_modify(char *sql, int size) { | |
| strcpy(sql, "NEW SQL HERE"); | |
| return 0; | |
| } |
| 64-bit WAMP (Windows, Apache, MariaDB/MySQL, PHP) til udvikling/test | |
| ==================================================================== | |
| Webserver med PHP | |
| ----------------- | |
| Opret C:\WAMP | |
| Opret C:\WAMP\www | |
| Download nyeste Apache binary (httpd 2.4) VC15 Win64 fra https://www.apachelounge.com/download/ |
| REM This file is not meant to be run in it's entirety | |
| REM --- Check if script is run as administrator | |
| net session >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo This script must be run with administrator privileges | |
| pause | |
| exit /B | |
| ) |
| #!/bin/bash | |
| echo -n "data:"`file --mime-type --brief $1`";base64,"`base64 --wrap=0 $1` >`realpath $1`".b64" |