Texture Mapping

its my first post, so let`s see.

I’m working through nehe`s tutorials, i get the whole idea very fast. But something are throwing me at garbage.
i used almost the same code at Nehe’s tuts, but didn’t work.
glGenTexture is retrieving zero to 2nd param, a GLuint by the way.

how can i fixed this ???

i hope i can help someone one day