Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot register DLL on 95 - LoadLibrary returns ERROR_GEN_FAILURE

66 views
Skip to first unread message

John Hynes

unread,
Apr 16, 1998, 3:00:00 AM4/16/98
to

Hi,

I have a namespace extension DLL, which I cannot get to register (using
REGSVR32) on Windows95. The error message I get is LoadLibrary failed
with error code 0x1f.

I've searched dejanews for this problem and a number of other people seem
to have seen it, but there arnt any solutions to the problem.

The server registers OK on Windows 98 and NT 4.

I've tried creating a test program which calls LoadLibraryEx with the
DONT_RESOLVE_DLL_REFERENCES flag. This still fails (but it succeeds if I
use the LOAD_LIBRARY_AS_DATAFILE flag).

I've used QuickView to see what DLLs my DLL is importing and checked they
all exist in the windows\system directory. Ive also checked the import
functions are supported on 95. It used to work OK until I added a new
interface and merged in the proxy/stub code.

Does anyone know what might be wrong ??
thanks in advance
john
--
John Hynes
----------

Dave Wasilew

unread,
Apr 16, 1998, 3:00:00 AM4/16/98
to

Error code 0x1f is "A device attached to the system is not functioning".
Does your code call a driver which cannot initialize?

Another possiblity is that you need atl.dll. QuickView shows you what dlls
are statically bound but not those loaded dynamically (via programmatic
LoadLibrary calls). Write a small stub that does a LoadLibrary on your dll
and walk through in the debugger (yeah, I know, a long walk, I've been
there...). Better yet, using the stub, run under BoundsChecker.

...Dave Wasilew


John Hynes wrote in message ...

WebEngine

unread,
Apr 17, 1998, 3:00:00 AM4/17/98
to

> Another possiblity is that you need atl.dll.

Don't forget to call REGSVR32 on atl.dll if you install it (this hung me up
for a while). Also, make sure you install the correct version Windows 95
uses the non-unicode version.

John Hynes

unread,
Apr 20, 1998, 3:00:00 AM4/20/98
to

I've found the problem - I was calling SHGetSpecialFolderPath which isnt
supported on 95.
--
John Hynes
----------

0 new messages