software/MFrame/commonFunctions/commonFunctions.cpp
/*----------------------------------------------------------------------*/
/* DisplayAlert(error, reason) -- draws an alert with the two parameters,
								  error and reason, as it's contents
								  
								  also included is a variation that uses
								  pascal strings
/*----------------------------------------------------------------------*/
DisplayAlert(error, reason) -- draws an alert with the two parameters,
error and reason, as it's contents

also included is a variation that uses
pascal strings
DisplayAlert ( error reason ) -- draws an alert with the two parameters error and reason as it ' s contents also included is a variation that uses pascal strings
void DisplayAlert(const char *error, const char *reason)
{
	Str255 PascalError, PascalReason;
	CGrafPtr			curPort;
	GDHandle			curDevice;
	GetGWorld(&curPort, &curDevice);
	C2Pas((char*)error, PascalError);
	C2Pas((char*)reason, PascalReason);
	ParamText(PascalError, PascalReason, nil, nil);
	NoteAlert(3000,nil);
	SetGWorld(curPort, curDevice);
}
void DisplayAlert ( const char * error , const char * reason ) { Str255 PascalError , PascalReason ; CGrafPtr curPort ; GDHandle curDevice ; GetGWorld ( & curPort , & curDevice ) ; C2Pas ( ( char * ) error , PascalError ) ; C2Pas ( ( char * ) reason , PascalReason ) ; ParamText ( PascalError , PascalReason , nil , nil ) ; NoteAlert ( 3000 , nil ) ; SetGWorld ( curPort , curDevice ) ; }
DisplayAlert(error, reason) -- draws an alert with the two parameters,
error and reason, as it's contents
DisplayAlert ( error reason ) -- draws an alert with the two parameters error and reason as it ' s contents