"How do you know you have a memory leak?"
when i execute, instead show the circle, don't show anything and the windows 7 give me a window with a message that stops responding and then close my program.
what is wrong?
if i can execute the problem isn't on my linker options(i add the lbbgi.a and "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32" linker options\commands
It's not using any of that stuff. You're using a library developed in 1991 for use on MS-DOS. It uses CGA, EGA, and probably VGA too, but that's about it. It predates Window 3. It is not a route for programming Windows graphics.