#include "Stdafx.h"
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include "Entrenar.h"
int Error (char* Mensaje, char* Titulo, int tipo) {return Func_Exportadas::Error(Mensaje,Titulo,tipo);};
int Func_Exportadas::Error(char* Mensaje,char* Titulo,int tipo)
{
LPCTSTR Mensaje_Cast;
Mensaje_Cast=(LPCTSTR)Mensaje;
LPCTSTR Titulo_Cast;
Titulo_Cast=(LPCTSTR)Titulo;
switch (tipo)
{
case 1: MessageBox(NULL,Mensaje_Cast,Titulo_Cast,MB_ICONSTOP|
MB_TASKMODAL);
return(FALSE);
case 2: MessageBox(NULL,Mensaje_Cast,Titulo_Cast,MB_ICONINFORMATION|
MB_TASKMODAL);
return(FALSE);
case 3: MessageBox(NULL,Mensaje_Cast,Titulo_Cast,MB_ICONSTOP|
MB_TASKMODAL);
return(FALSE);
case 4: MessageBox(NULL,Mensaje_Cast,Titulo_Cast,MB_ICONEXCLAMATION|
MB_TASKMODAL);
return(FALSE);
}
return (TRUE);
}