Thread: problem with devc++

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    4

    Unhappy problem with devc++

    when i run the program as below,there are so many errors,i have downloaded
    the CLGdiDevpak through webupdate.i really found some mistakes in the header
    file <winbgi.h>,but after i correct there basic mistakes and compile it ,there
    are still errors.this time i don't know what i should do.the program as
    following:
    Code:
    /*    name.c ... this program is quoted from Dev-cpp/Templates/consoleGdi*/
    
    #include <winbgim.h>
    
    main()
    
    {
    
     	initwindow(640,480); 
    
    	setcolor(WHITE);  
    
    	circle(320,240,100);
    
     	getch();   
    
     	closegraph();       
    
     	return 0;
    
    }
    what can i do ?i am learning C language by myself,so please say it clearly.
    thx thx thx thx thx thx thx thx thx thx....................

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Just a guess, but anything windows usually begins with

    #include <windows.h>

    Are there any examples which come with the package to look at and try yourself
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM