I\'ve tried adding an int WinMain and it doesn\'t work, then I found a solution by adding #define SDL_MAIN_HANDLED and it still doesn\'t work. Here
int WinMain
#define SDL_MAIN_HANDLED