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
Create/update the copy: | |
rsync -avi --delete A/ B/ | |
Verify: | |
rsync --dry-run --recursive --checksum --times --delete --itemize-changes --verbose --stats A/ B/ |
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
function call_api(url, args, rsp_json, result_func) { | |
// Start the fetch chain of promises | |
fetch(url, { | |
method: 'POST', | |
headers: {'Content-Type': 'application/json'}, | |
body: JSON.stringify(args) | |
}) | |
.then(rsp => { | |
// rsp.ok true if rsp.status is 200-299 | |
if (rsp.ok) { |
body { | |
background-color: white; | |
color: black; | |
font-family: sans-serif; | |
font-size: 100%; | |
} |
program Client; {$APPTYPE CONSOLE} | |
uses | |
Windows, SysUtils, IdTCPClient; | |
var | |
TcpClient: TIdTCPClient; | |
S: string; | |
begin |
// Compile with MS cmd-line: cl basic_windows_application.c user32.lib | |
// Compile with Embarcadero cmd-line: bcc32c -tW -tU basic_windows_application.c | |
// Compile from Ubuntu: x86_64-w64-mingw32-gcc -mwindows -municode -Os -o basic.exe basic_windows_application.c | |
// Compile with Digital Mars C: dmc basic_windows_application.c | |
// + strip basic.exe | |
#include <windows.h> | |
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |
{ |
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 | |
) |
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/ |
// 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; | |
} |
using System; | |
using System.Drawing; | |
using System.Windows.Forms; | |
public class RubberExample : Form { | |
bool mouseDown = false; | |
Point mouseDownPoint = Point.Empty; | |
Point mousePoint = Point.Empty; |