fareez 0 Newbie Poster

Dear all
I used codeblock to make a machine and now I need to capture the screen, I tried the GDI and DirectX examples in this site :
http://www.codeproject.com/Articles/505 ... the-screen
but codeblock gave errors , I think I do not know how to use them , please tell me what I have to do
Thanks a lot
Fareez