can anyone tell me how to use the bgi library for windows in code blocks compiler...i have downloaded the libraries but dont know how to use it...please tell me the procedure

go to this page http://www.codecutter.net/tools/winbgim/

get the download. the zip file contains 3 items.

the files winbgim.h and graphics.h must be copied to your MinGW include directory.
the folder libbgi.a must be copied to your MingW lib directory.

include the appropriate header files to use the functions in your program.