I wrote a C++ program way back on Windows 95 with Visual C++ 4.0/6.0 compilers long ago.

I have now upgraded the old project .mdp files to Visual Studio 8.0's .sln files. That process went very smoothly as there is a converter built in to the compiler.

Now, on my Vista machine, the program runs fine. It's an executable and calls one other dll. No problem there.

But on the XP machine, a call I make to LoadLibrary((LPCWSTR) "MSVCRT.dll") fails with error code 126 (more or less this is file/path not found). Now there are about a dozen or so versions of that dll on my XP machine, in addition to the usual one in C:\WINDOWS\system32. Perhaps of the 12, 4 or 5 have different dates. Well anyway, I tried running ProcessMonitor, and I 've tried other stuff, but to no avail.

Does anyone have a huge, grand strategy that I can take to resolve this issue. My ultimate purpose is just to do this kind of thing (and this works fine on my Vista machine which also has Visual Studio 5.0/8.0, likewise my XP machine setup).

So ultimately, it's, provided I've gotten a nice m_hDll_ handle from the LoadLibrary call:
pFun = (pfMyFunc)::GetProcAddress(m_hDll_, "sin");

I just cannot get the LoadLibrary call to work on my XP machine. Any help appreciated.
Thank you.
WhatNow46