Initial Commit

This commit is contained in:
2024-08-07 09:09:36 -04:00
commit ca445435a0
458 changed files with 41370 additions and 0 deletions

14
common/errormsg.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <common/errormsg.hpp>
void ErrorMessage::message(DWORD message)
{
LPVOID pMessageBuffer;
::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,NULL,message,MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),(LPSTR)&pMessageBuffer,0,NULL);
if(!pMessageBuffer)return;
::MessageBox(::GetFocus(),(LPSTR)pMessageBuffer,(LPSTR)"FormattedMessage",MB_OK);
::LocalFree(pMessageBuffer);
}