MessageBoxA(null, "Error", cast(char)[])e.msg,MB_OK | ICON_ERROR);
use std.string.toStringz to ensure that e.msg is 0-terminated.
jfondren via Digitalmars-d-learn Fri, 20 Aug 2021 14:46:39 -0700
MessageBoxA(null, "Error", cast(char)[])e.msg,MB_OK | ICON_ERROR);
use std.string.toStringz to ensure that e.msg is 0-terminated.