Thread: alerts

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    5

    Question alerts

    Hi,
    I'm trying to figure out how to make an alert come up in Mac, the kind that go up when something goes wrong (e.g. Unexpectedly quit errers, ect.). Please help me.

    Thanks,
    Stephen

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Is something like this what you want?
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    .
    .
    .
    
    if ( /* something is wrong */ ) {
      fputs ( "Error message\n", stderr );
      exit ( EXIT_FAILURE );
    }
    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. windows secruity alerts
    By MisterSako in forum Tech Board
    Replies: 3
    Last Post: 04-23-2006, 04:20 PM