Article View: borland.public.cppbuilder.nativeapi
Article #5364Re: A Dynamic Link Library (DLL) initialization routine failed. Error when opening program.
From: Tom
Date: Wed, 07 Sep 2005 03:10
Date: Wed, 07 Sep 2005 03:10
53 lines
2608 bytes
2608 bytes
JD,
I found the same information. I got a listing of all of the DLLS and had the
client
match them up with version and file size on his side. I had him create a
file using
that Process Explorer that listed the same info and send it to me, so that
we both
looked it over.
I'll try the test program and see how it goes. Do I need to load every DLL
or just
the primary ones from the previous post? Reason I ask is that I have a
feeling that
one of the sub-dll's is failing and that's why the DLL name isn't given.
-Tom
"JD" <nospam@nospam.com> wrote in message
news:431e2d54@newsgroups.borland.com...
>
> "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:
<431e59ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<431ae73b$1@newsgroups.borland.com> <431b5ff3@newsgroups.borland.com> <431ca62c$1@newsgroups.borland.com> <431e2d54@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: "Tom" <thomasf1021@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <431ae73b$1@newsgroups.borland.com> <431b5ff3@newsgroups.borland.com> <431ca62c$1@newsgroups.borland.com> <431e2d54@newsgroups.borland.com> Subject: Re: A Dynamic Link Library (DLL) initialization routine failed. Error when opening program. Date: Tue, 6 Sep 2005 22:10:34 -0500 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.1.78.156 Message-ID: <431e59ee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126062574 68.1.78.156 (6 Sep 2005 20:09:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail