[email protected] wrote:
I am trying to write an external dll for authentication..
Get an error in dnews.log:
19 11:01:05 1:info: External lookup
19 11:01:05 1:info: Looking up user (oskar) via external routine
19 11:01:05 1:error: Cannot load (c:\dnews\dnewsauth.dll) err=126
the dll is existing, calling the func dnewsauth in the dll from a test
executable works.
Any hints what this err 126 might tell?
Error 126 = Module not found. The call that just failed is
LoadLibrary("c:\dnews\dnewsauth.dll");
Here are the relevant source lines:
dlx_lib = LoadLibrary(libname);
if (dlx_lib==NULL) {emsg("Cannot load (%s)
err=%d\n",libname,GetLastError()); return FALSE;}
So, I would strongly suspect that file doesn't exist, are you sure it's there ?
ChrisP.