a problem about opengl

when running the opengl programms,
windows pop a message:
application initialization fails(0xc0000142),
press “ok” to halt it.

i analyzed it,and found that the problem caused by the wgl* functions.

i don’t know why.

There are so many samples about win32 opengl initialization.Look into the nehe and sgi site.