News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

The program stop working when initializing Graphic Mode in graphics.h

Started by namminhlp, April 09, 2016, 05:27:16 AM

Previous topic - Next topic

namminhlp

I do step by step on this link http://www.codeincodeblock.com/2011/09/how-to-setup-winbgim-library-in.html to add "gracphics.h", "winbgim.h" to CodeBlocks but when i run my program :
Code (php) Select

#include <iostream>
#include <graphics.h>
using namespace std;

int main()
{
    initwindow(300,300);
    return 0;
}

a window appears saying that the program has stopped working.What should i do ? please !

oBFusCATed

Add more code to make the program do more than init the window and then quit.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]