opengl program canna run

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.
i expect anybody can help me, thanks a lot

windows…

yes,win2000
before i had reinstalled it,
everything was all right.
i donna know whether the problem is opengl driver or windows gdi dll

Originally posted by Mihail121:
windows…

The Opengl programs?

What programs, ones you’ve written? Or ones that aren’t relevant to this list (ie. Ones you haven’t written).

The wgl* functions?

A specific wgl function or is it different every time? If you’re actually the author of the problem code are you initializing your extensions?

opengl programs written in msvc.
any opengl programms i’ve written and
others have written.
the programs halted by the invokes of
wglcreatecontext() or some other wgl*(
i’ve not try all wgl*).
the problem occurred even when i’ve not
invoke the function which invokes the wgl*.
anything was all right at compiling and
linking, just run-time error.

Originally posted by ywwlinux:
yes,win2000
before i had reinstalled it,
everything was all right.

Probably a driver problem then? Did you apply the same SP as you had previously, and the same gfx driver version? Also check MSVC service pack level.