home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2004 March / PCWELT_3_2004.ISO / pcwsoft / flaskmpeg_078_39_src.z.exe / flaskmpeg / error.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  1.7 KB  |  67 lines

  1. /* 
  2.  *  error.cpp
  3.  *
  4.  *    Copyright (C) Alberto Vigata - January 2000
  5.  *
  6.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  7.  *    
  8.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2, or (at your option)
  11.  *  any later version.
  12.  *   
  13.  *  FlasKMPEG is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *   
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with GNU Make; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  21.  *
  22.  */
  23.  
  24. #include "windows.h"
  25. #include "error.h"
  26. #include "flaskmpeg.h"
  27. #include "runstate.h"
  28.  
  29. extern TRunState rs;
  30.  
  31. int Critical(char * str)
  32. {
  33.   if (!str)
  34.     MessageBox(NULL, "Unknow error. FlasKMPEG will be closed.", "FlasKMPEG Critical Error",MB_ICONEXCLAMATION);
  35.   else
  36.     MessageBox(NULL, str,"FlasKMPEG Critical Error",MB_ICONEXCLAMATION);
  37.         
  38.   exit(0);
  39.   
  40.   return 0;
  41.   
  42. }
  43.  
  44. int MyError(char * str)
  45. {
  46.   if (!str)
  47.     MessageBox(NULL, "Unknow error.", "FlasKMPEG Error",MB_ICONINFORMATION);
  48.   else
  49.     MessageBox(NULL, str,"FlasKMPEG Error",MB_ICONINFORMATION);
  50.   
  51.   return 0;
  52.         
  53. }
  54.  
  55. void PrintError(int code,int par1,int par2){
  56.     if(code <1000)
  57.         MessageBox((HWND)par1, GS(code), GS(WARNING), MB_OK);
  58.  
  59. }
  60.  
  61. void DebugPrint(char *str, int level){
  62.     OutputDebugString(str);
  63.     return;
  64. }
  65. void DebugSetLevel(int level){
  66.     return;
  67. }