Answers for "how to create windows error message c++"

C++
1

c++ windows error message

// A single line of C-code needed
MessageBox(NULL,"An error has occurred because you didn't use this program correctly!", "Error!", MB_OK);
Posted by: Guest on October-17-2020
0

how to create windows warning message c++

#include <windows.h>

MessageBoxW(

	NULL,
	(LPCWSTR)L"This will be the text",
	(LPCWSTR)L"This will be the title",
  	MB_ICONERROR | MB_YESNO

	/*
	Instructions about how to configure the icon's
	and buttons can be found at:
	https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw
	*/

);
Posted by: Guest on April-17-2022

Browse Popular Code Answers by Language