The code:
require"iuplua"
require"iupluacontrols"
iup.SetLanguage("ENGLISH")
function prompt(title, message)
res, promptInput = iup.GetParam(title, nil,
message .. "%s\n","")
return promptInput
end
dlg = iup.messagedlg{
dialogtype = "ERROR",
title = prompt("Title", "This is the title of the error message"),
value = prompt("Text", "This will be the text body of the error message")
}
dlg:popup()
dlg:destroy()
It should run if you have the Lua For Windows package installed.