Texture Mapping Fails

This is the code: http://pastebin.com/xt4pg33g
Whenever i try calling glTexImage2D, it doesnt run i just get message “Process returned 3 (0x3)”
I’ve done Texture Mapping before and i never had this problem.

EDIT: I fixed it. It seems that my tex.bmp was corrupted or something lol. I dunno how to delete thread or if its even possible in this forum.