🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5363

Re: A Dynamic Link Library (DLL) initialization routine failed. Error when opening program.

#5363
From: JD
Date: Tue, 06 Sep 2005 23:59
27 lines
1834 bytes
"Tom" <thomasf1021@hotmail.com> wrote:
>
> [...] but anyone else have any ideas?

A quick google tells me that the error that your getting can
be caused by a file size of zero or conflicting dll versions.

The file sizes can be easily confirmed by the user and a
simple test program should tell you where it fails. Just use
LoadLibrary to see if and when one fails and while you're at
it, check for it's version. For example:

    WORD Major = 0;
    HINSTANCE hDll = ::LoadLibrary( "Some.dll" );
    if( hDll )
      {
          DLLGETVERSIONPROC lpDllGetVersion = (DLLGETVERSIONPROC) ::GetProcAddress( hDll, "DllGetVersion" );
          if( lpDllGetVersion )
            {
                DLLVERSIONINFO dvi = { sizeof(DLLVERSIONINFO), 0 };
                if SUCCEEDED(lpDllGetVersion(&dvi)) Major = dvi.dwMajorVersion;
            }
          ::FreeLibrary( hDll );
      }

~ JD
Technical Details
Message-ID: <431e2d54@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <431ae73b$1@newsgroups.borland.com> <431b5ff3@newsgroups.borland.com> <431ca62c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5ab1764959a7361b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: A Dynamic Link Library (DLL) initialization routine failed. Error when opening program.
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 152.163.101.6     
X-Forwarded-For: 172.148.75.37
References: <431ae73b$1@newsgroups.borland.com> <431b5ff3@newsgroups.borland.com> <431ca62c$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <431e2d54@newsgroups.borland.com>
Date: 6 Sep 2005 16:59:16 -0700
X-Trace: newsgroups.borland.com 1126051156 207.105.83.66 (6 Sep 2005 16:59:16 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail