Check out example codes for "c++ windows error message". 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_OK);
Learn ReactJs, React Native from akashmittal.com