Error 504 - Executable requires PBMAIN/WINMAIN function

Executable requires PBMAIN/WINMAIN function - No WINMAIN or PBMAIN function was located in an executable program. Without one of these functions, it is not possible for Windows to execute the program.