That will just redirect you back to
New Matrix1Utils plugins collection in this forum.
Anyway, remember that message boxes will work great unless you are in FSEX mode - using them in FSEX mode will take you back to windowed mode, losing all of your directx resources along the way.
There's no difference real between a 'DisplayMessage' and a 'WarningMessage' - both will pop up a message box, wait for it to be responded to, then return control to you. The only difference may be that you display the warning icon on the WarningMessage:
void WarningWithCaption(LPCSTR Caption, LPCSTR Message)
{
MessageBox(0, Message, Caption, MB_OK | MB_ICONWARNING);
}
void Warning(LPCSTR Message)
{
WarningWithCaption("Warning!", Message);
}
The only way that ErrorDisplay is different is that it must cause the program to end after it completes. The way that I used to do this (with confirmation from Mike) was as follows:
DBPro::CloseDisplay();
DBPro::Quit();
MessageBox( 0, Message, Caption, MB_OK | MB_ICONSTOP);
ExitProcess(0);
The CloseDisplay and Quit functions are available in the DBProCore.dll.