1 //-------------------------------------------------------------------- 2 // 3 // stddlg.cpp 4 // 5 // Written by: Owen Smith 6 // 7 //-------------------------------------------------------------------- 8 9 /* 10 Copyright 1999, Be Incorporated. All Rights Reserved. 11 This file may be used under the terms of the Be Sample Code License. 12 */ 13 14 #include <Alert.h> 15 #include <string.h> 16 17 #include "constants.h" 18 #include "stddlg.h" 19 20 void ierror(const char* msg) 21 { 22 char* fullMsg = new char[strlen(STR_IERROR) + strlen(msg) + 1]; 23 strcpy(fullMsg, STR_IERROR); 24 strcpy(fullMsg, msg); 25 BAlert alert("Internal Error", fullMsg, "OK", NULL, NULL, 26 B_WIDTH_AS_USUAL, B_STOP_ALERT); 27 alert.Go(); 28 delete [] fullMsg; 29 } 30