1

When I'm trying to load nss3.dll  to load some functions, i get a 126 error. Dll located in C:\TEMP Code:

    SetDllDirectory("C:\\TEMP");
    HMODULE hNSS = LoadLibrary("nss3.dll");
    if (hNSS)
    {
    cout << "OK";
    }
    else
    {
    cout << GetLastError();
    }

I tried write it differently, but i always get this error.

intelsad
  • 11
  • 1
  • 1
    maybe take a look here: https://stackoverflow.com/questions/14361992/dll-load-library-error-code-126 – guenni_90 Apr 08 '19 at 20:08
  • 2
    `nss3.dll` is likely dependent on several other dlls. Are they in the PATH? You may want to use [Dependency Walker 2.2](http://www.dependencywalker.com/) – drescherjm Apr 08 '19 at 20:12

0 Answers0