Are you sure you are running this project as a Windows Application?
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
>Yes i'm compiling it as an .exe and it it runs fine.
That doesn't answer the question. When you create a project in Dev-C++ you can choose a Win32 application or a Console application. You chose a console application, which automatically spawns a command prompt window for running the program. A Win32 application does not.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401