User Tools

Site Tools


c:graphics.h:showerrorbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:graphics.h:showerrorbox [2015/05/06 23:06]
c:graphics.h:showerrorbox [2024/02/16 01:05] (current)
Line 1: Line 1:
 +===== showerrorbox =====
 +
 +
 +====Syntax of showerrorbox ==== 
 + <code c>
 +#include "graphics.h"
 +void showerrorbox(const char* message=NULL);
 +  </code>
 +
 +
 +==== Description of showerrorbox ==== 
 +<code c>
 +The showerrorbox function is available in the winbgim implementation of
 +BGI graphics. You do not need to include conio.h; just include
 +graphics.h. The function opens a windows error message box with the
 +specified message (or a standard message if the message parameter is
 +NULL). The message box waits for the user to click on OK button before
 +showerrorbox returns.
 +  See also
 +bgiout
 +outtext
 +outtextxy
 +  Example
 +/* showerrorbox example */
 +#include "graphics.h"
 +
 +int main(void)
 +{
 +   /* initialize graphics window at 400 x 300 */
 +   initwindow(400, 300);
 +
 +   /* draw a line */
 +   line(0, 0, getmaxx(), getmaxy());
 +
 +   /* display a sample error box */
 +   showerrorbox("Sample of an Error Box");
 +   closegraph();
 +   return 0;
 +}
 +
 +
 +
 +
 +==== Example of showerrorbox ====
 +<code c>
 +/* showerrorbox example */
 +#include "graphics.h"
 +
 +int main(void)
 +{
 +   /* initialize graphics window at 400 x 300 */
 +   initwindow(400, 300);
 +
 +   /* draw a line */
 +   line(0, 0, getmaxx(), getmaxy());
 +
 +   /* display a sample error box */
 +   showerrorbox("Sample of an Error Box");
 +   closegraph();
 +   return 0;
 +}
 +</code>
 +
 +
 +==== See also ====
 +[[bgiout]]
 +[[outtext]]
 +[[outtextxy]]
 +
 +
 +===== output of showerrorbox example ===== 
 +
 +    no output of example at the moment
 +    do not hesitate and add it...  
 +
 +
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz