Check out example codes for "c++ message box error". It will help you in understanding the concepts better.

Code Example 1

// A single line of C-code needed
MessageBox(NULL, "An error has occurred because you didn't use this program correctly!", "Error!", MB_ICONERROR | MB_OK);

Learn ReactJs, React Native from akashmittal.com