Advertisement

dx7 program with windows 2000

Started by May 18, 2001 11:56 AM
5 comments, last by Nebula 23 years, 8 months ago
I''ve been making a directx7 program with the cdx library and the game runs fine on my computer, but I''ve been making the program for a C++ class at school, and it doesn''t work on all the computers here. When i run it i get this error: "The application failed to initialize properly (0xc0000142)." Then i push ok and it terminates the application.

It compiles fine but when I debug it i get this error: "Unhandled exception in game.exe (NTDLL.dll): 0xC0000142: DLL Initialization Failed." I''d also like to point out that I have got the program to run on the teacher''s computer. Has anyone encountered this problem with windows 2000?
I us Windows 2000 and DX7. My compiler is Visual C++ and it works fine.

Later
Advertisement
Gee, thanks for the help... BTW i''m using VC++
Is there any differences between the computers
in the lab? It could deal with unsupported
device settings. Try using the caps viewer
to make sure the computers support what you
are trying to do. I am interested to know
if it is getting past creating the deivce or not.

Make sure that all of the computers you''re trying to run it on actually have DirectX 7 installed. DirectX is not guaranteed to be on a windows computer because its not required for it to work correctly(unless you''re using DirectX apps). Another thing to check out is that windows 9x doesn''t have all of the same functions to it that windows nt does, so if your computer has win 9x on it then that could be your problem. You''d need to find an equivalent function for windows nt. Like Nebula said, it might just be that the other computers don''t have the same capabilities as the computer that you developed on.
I can think of four reasons why a Dx7 program would not run correctly on a Win2000 machine.

Dx7 is included and automatically installed with W2k, so you know it''s there; however the sysadmin(s) could have restricted it''s use or removed it (though that''s not likely).

A probably reason it doesn''t work is because the default W2k video drivers are installed on the computers at school. In order to have any of the 3D support, you need drivers from the manufactor. You may or maynot be able to install new drivers on your own (depend on what kind of lab it is).

You might be over estimating the hardware on those machines; they may not be hardware accelerated video cards; and the Dx7 initialization routines may be blindly requesting a 3D support.

If all that checks out ok, got recent manufactor drivers, have 3D video cards (or whatever other hardware your program needs - ie sound card etc...). Then try this;
goto Display Properties->Settings->Advanced->Troubleshooting
Turn it down it down two notches (right above disable 3D acceleration). If the program runs, turn it up a notch, and try it again, if it works turn it back up to the top. I would not be surprised if it worked this time. Something get''s reset when you twiddle the acceleration level.

I can''t use anything with D3D7 after I play QuakeIII, without twiddling the acceleration down & back up a notch.

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
Oh by the way it does work on the teacher's computer, when my files were accessed from that computer. Kind of strange, we tried messing with my permissions but that didn't work either. I was just curious if this was a more common problem, but maybe it is something going on they have in the lab at school.
BTW, thanks for all the suggestions, I will try them on Monday.

Edited by - Nebula on May 18, 2001 12:43:42 AM

This topic is closed to new replies.

Advertisement