CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    19

    DLL fails to load, only in 95 (not NT or 98)

    I have a MFC DLL that fails to load in a LoadLibraryEx call, but only on Windows 95 - it works fine on 98 and NT/2000.

    It doesnt even get to the DllMain function - the load call returns straight away with a DLL failed to initialize error.

    Does anyone know how I can debug this to see what is causing the problem.

    I dont think its any of the reasons given in the Platform SDK for 95 failure (resource values > 0x7fff, Unicode calls etc), but am really clutching at straws now....



    James


  2. #2
    Guest

    Re: DLL fails to load, only in 95 (not NT or 98)

    What does GetLastError() return? And are you calling LoadLibraryExA or LoadLibraryExW?


  3. #3
    Join Date
    May 1999
    Posts
    19

    Re: DLL fails to load, only in 95 (not NT or 98)

    Using LoadLibraryExA (UNICODE *not* defined, _MBCS *is* defined)

    Error message using GeLastError and FormatString is

    "A dynamic link library (DLL) initialization routine failed."

    ERROR_DLL_INIT_FAILED (1114)

    James


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured