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


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:



thank you very much!