I have an application that was running fine on a Windows 2000 machine. Recently I moved the app to WIndows XP and I keep getting this error:
First-chance exception in mst.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.
The line of code that is being executed when this error occurs is:
Code:
retcode = SQLAllocEnv(&henv);
All development is accomplished using Visual Developer (C++).

Does this error make sense to anyone because I've been playing with it for two days now? NTDLL exists in C:\Windows\System32 which is in my path envirnment variable.