alerts

This is a discussion on alerts within the C Programming forums, part of the General Programming Boards category; Hi, I'm trying to figure out how to make an alert come up in Mac, the kind that go up ...

  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,796
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21