what should i do?

i am a novice to OpenGL ,but i have strong interests in it. recently,i meet a problem,that is how to load .bmp and use it in maping texture.
i have read some articles that they advice to reference to NeHe’s guide,but his program is run
at win32 console enviroment, when i copy the codes
to MFC SDIenviroment, the program can not run ,why?
someone has some ideas for me ,thanks1

hello,

the reason is because MFG applications do need a little bit more than the small bunch of code a standard “pure” Win32 application includes - just copying and comiling can (!) never work if you are doing it straight this way !
Perhaps you may be interested in the following links, regarding MFC/GL applications:

http://home.planet.nl/~monstrous/tutMFC.html

http://www.mfcogl.com/Links%20MFC%20&%20OpenGL%20Page.htm

thank you very much!